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; } Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/ 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 Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-138319 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 exampleTeresa[email protected]Carlos[email protected]............when they submit their name and email. to redirect to an website.. i been trying and i cant find the php code Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-138500 Share on other sites More sharing options...
cpljv Posted December 11, 2006 Author Share Posted December 11, 2006 anybody? Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-138787 Share on other sites More sharing options...
trq Posted December 11, 2006 Share Posted December 11, 2006 What is the problem? Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-138789 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 :( Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-138790 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. Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-138793 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?? Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-139021 Share on other sites More sharing options...
cpljv Posted December 12, 2006 Author Share Posted December 12, 2006 ? Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-139636 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.............. Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-140161 Share on other sites More sharing options...
trq Posted December 13, 2006 Share Posted December 13, 2006 [code=php:0]$newitem = $name.$email;[/code] Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-140162 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 Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-140686 Share on other sites More sharing options...
hitman6003 Posted December 13, 2006 Share Posted December 13, 2006 http://www.php.net/manual Link to comment https://forums.phpfreaks.com/topic/30072-hi-does-anybody-can-help-to-understand-this/#findComment-140691 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.