cpljv Posted December 9, 2006 Share Posted December 9, 2006 hi i have this... variables.... <? $email = $_REQUEST["email"]; $name = $_REQUEST["name"]; if ((!isset($_POST['submit2']))) { ?>=========================================================================ok... i want the $newitem to be equal to $email and $name, but i dont know how to.... does anybody can help me how it goes? if (strlen($list) == 0){ $newitem = $email; } else { $newitem = ', '.$email; } Quote Link to comment Share on other sites More sharing options...
Drezard Posted December 10, 2006 Share Posted December 10, 2006 So you just want to store a user's name and email that they've submitted on a page in a file?- Cheers, Daniel Quote Link to comment Share on other sites More sharing options...
cpljv Posted December 10, 2006 Author Share Posted December 10, 2006 [quote author=Drezard link=topic=118014.msg481960#msg481960 date=1165721863]So you just want to store a user's name and email that they've submitted on a page in a file?- Cheers, Daniel[/quote]Yes sir, no a user name, just his/her name and email. to a filefor exampleTeresateresa@hotmail.comCarlossomething@google.com............when they submit their name and email. to redirect to an website.. i been trying and i cant find the php code Quote Link to comment Share on other sites More sharing options...
cpljv Posted December 11, 2006 Author Share Posted December 11, 2006 anybody? Quote Link to comment Share on other sites More sharing options...
trq Posted December 11, 2006 Share Posted December 11, 2006 What is the problem? Quote Link to comment Share on other sites More sharing options...
cpljv Posted December 11, 2006 Author Share Posted December 11, 2006 it doesnt store the email.. ty just store the name :P :( Quote Link to comment Share on other sites More sharing options...
trq Posted December 11, 2006 Share Posted December 11, 2006 You never store the $email within the $newitem vairable you write to the file. Quote Link to comment Share on other sites More sharing options...
cpljv Posted December 11, 2006 Author Share Posted December 11, 2006 but how will i correct this ? $newitem = $name; $email;} else {$newitem = ', '.$name; ', '.$email; } would be like this?? Quote Link to comment Share on other sites More sharing options...
cpljv Posted December 12, 2006 Author Share Posted December 12, 2006 ? Quote Link to comment Share on other sites More sharing options...
cpljv Posted December 13, 2006 Author Share Posted December 13, 2006 ok i got .. so i have a new question.............. Quote Link to comment Share on other sites More sharing options...
trq Posted December 13, 2006 Share Posted December 13, 2006 [code=php:0]$newitem = $name.$email;[/code] Quote Link to comment Share on other sites More sharing options...
cpljv Posted December 13, 2006 Author Share Posted December 13, 2006 wow was so easy.... where can i learn stuff like this?and ty very much Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted December 13, 2006 Share Posted December 13, 2006 http://www.php.net/manual Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.