![]() |
Form Processing
Someone recently posted to make a Form Processing script so people would know how to use forms with there scripts.
Quote:
<html> <head> <title>Form Processor</title> </head> <body> FORM HTML Code:
<form action='something.php' method='post'>PHP Code:
calculator.php PHP Code:
now to go back to the old method "post" you could make a form and on the page make a text box called "to" and someone put there eMail address there.Now on the page that the form sends the data to just make it print $to and it will print what they typed. Now if you wanted to use what I said on the mail() tutorial you could do something like make a html form then make the names... to, subject, body. then on the next page type: mail($to, $subject, $body, "From: My Feedback"); and you just made a feedback. Now your probably wondering how does the html file know where to send the data. Well just change action='' in the <form> to the address of the PHP file and away you go. Good luck! |
Can you update with register globals off since this will be the desired setting in the php.ini
|
There will need to be a few changes to this also. Once the tutorial section is updated we'll move it to a new area. Update it as AlEasy suggested and once the tutorial code is completed I'll either move it there or you can.
|
I just fixed the tutorial, Thanks for finding the bug. I do that for all my codes but I didn't wanna make it anymore harder for people that are just starting out. I forgot about the problem if register globals were off.
|
Either way, thanks for fixing it!
|
No problem.
|
That's exactly what i have been looking for, the past few days.
Thanks for sharing this tutorial with us :) |
very nice :D
keep them cooming !!!!! ed |
Thanks!
I been looking for something like this, since I kept getting errors when I tried writing one. Hope to see more. |
| All times are GMT. The time now is 04:49 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0