|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
PHP Newb /w Problem
Im trying to develop a form. I want it to take user information, then display it on a second page (for the user to double check) then go off and send it to my email.
The problem I am having is that all my user inputted data is lost when I try to make the form E-Mail me. I recieve the e-mail but it is completely empty ![]() Thanks for any help in advanced! |
|
#2
|
|||
|
|||
|
Can you post the code you are using, maybe as a attached zip file..
|
|
#3
|
|||
|
|||
|
I posted phps for a friend,
http://arrayi.net/hosting_order.phps http://arrayi.net/hosting_order2.phps Just to clarify, the message is not completely empty everything shows but the varibales. its like the information (variables) is not being passed on |
|
#4
|
||||
|
||||
|
When you print out the form after initial submittal, you need to print all submitted values as hidden fields. You're submitting them to the initial form and printing them as text to the screen, but they're no longer in memory when you submit the second form (unless I'm misreading your code). Alternatively, you could send the message as a hidden field to make life easier (though you'd have to watch for quotes in the string).
|
|
#5
|
|||
|
|||
|
Okay, so I want to do
Code:
<? $fullnamesub = $POST_['fullnamesub']; $message= "Full Name: $fullnamesub \n\n etc, etc,"; (etc, etc, etc) ?> <html> (etc, etc, etc) <form action="hosting_order2.php" method="post"> <input type="hidden" name="fullnamesub" value="<?echo $fullnamesub ?>"> <input type="submit" name="submitcheck" value="Submit"> <etc, etc, etc,) </html> Like that? Thats what I think you were getting at. Thanks, I cant try it right now but I will when I get home ![]() |
|
#6
|
||||
|
||||
|
Yep, something along those lines.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP Newb /w Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|