Why dont this work?
PHP Code:<?php echo("$_POST['name]");?>PHP Code:<?
////////
$_POST['name'] = "Susy";
/////////
?>
| SitePoint Sponsor |





Why dont this work?
PHP Code:<?php echo("$_POST['name]");?>PHP Code:<?
////////
$_POST['name'] = "Susy";
/////////
?>


syntax
will work as long as the form element has a value.PHP Code:<?php echo $_POST['name']; ?>
Spike
Edit:
With it being a $_POST array it HAS to be sent via a form and can't have the value assigned to it as you have....
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
Try just using this for your echo
PHP Code:echo $_POST['name'];





hm nothin shows up for itbut i dont get errors, it has value





oh thru a form? dang.
i guess ill have to make a name variable for extra


Did you read my edit btw?
If it still isn't playing, post your code that recieves the form input
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
You are getting it from form, right?
-- Jelena --





oh it works i had the PHP code above the string, i didnt think that mattered :[
Yeah from a form.
I didnt know it has to be above, php doesnt relate to the entire doc?


oops![]()
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!





thamnks for yall help, this php stuff is hard for me to learn cuz im bad at thinking lol
Bookmarks