| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: U.S.A.
Posts: 655
![]() ![]() | |
| |
| | #2 (permalink) |
| NamePros Member Join Date: Jan 2005 Location: Texas USA
Posts: 71
![]() | It's very simple ![]() form: Code: <form method="post" action="scriptname.php"> <input type="text" name="variable1"><br /> <input type="text" name="variable2"><br /> <input type="Submit" name="Submit" value="Submit"> </form> ![]() when the form is submitted via the submit button, the values from the fields in the form will be translated in PHP to this: PHP Code: heres a small script that just shows the data the user submitted PHP Code: Hope this helps ![]() Also, one more thing. the words inside the $_POST are the names that you assign the fields in the form. So if you had this: Code: <input type="text" name="trees"> PHP Code:
__________________ I wonder... |
| |
| | THREAD STARTER #5 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: U.S.A.
Posts: 655
![]() ![]() | Okay that helps.But i dont think it works on webhosting things because i havew a web hosting thing i use it for but it doesnt work when i put the codes there it gives a cannot find thing.So what does that mean .Thanks for the help.Coolprogram |
| |
| | #13 (permalink) |
| NamePros Regular Join Date: Mar 2005
Posts: 912
![]() ![]() ![]() ![]() ![]() | Hi ppl, I just wanted to know it's not necessary to put the $_POST['submit']; on the receiveing end is it? coolprogram, I think you might be using an earlier version of php which takes in commands like HTTP_POST_VARS['name']; or you might be looking in the wrong directory.these are just guesses sorry If Im wrong I kinda new to php programming but have experience In other languages.
__________________ Live Support : Zubair11 [at] hotmail.com Free SEO Directory! || Free Online TV || Tech Blog Web Design & Web Development Services || Reliable Web Hosting |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial: Getting started with PHP (The Basics) | deadserious | Webmaster Tutorials | 60 | 11-17-2007 12:35 PM |
| Googlism - What does google think of you? | deadserious | The Break Room | 55 | 12-15-2005 10:09 AM |
| Beware of PHP! | PolurNET | The Break Room | 25 | 03-29-2005 04:04 PM |