|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Regular Member Join Date: Dec 2005
Posts: 122
![]() | Okay, I've got a question about html forms... I've got it nearly all set up as I want it with the fields and all, but my problem is the submit. How and where do I submit it too? Viewing the source on other pages they have it set as something like "action=sendmail.php" - what does this do? I set mine on "mailto:myaddress@site.com" but it doesn't work so well. Any ideas? Much appreciated.
__________________ My Forums:Science Forum|BIG MONEY|Writing Forums If you're looking for a web-related partner, or need an odd job done, PM me. |
| |
|
| |||||||
| | #2 |
| Retired Member Join Date: Dec 2005
Posts: 139
![]() | Here's how POST requests work. You'll know it's a POST request by <form method="post">. This just means the values are hidden. Non-hidden values appear in the URL when using method GET. Variables can be passed between pages by ending the URL with a question mark then the syntax as shown: file.php?action=do_this&user=compuXP&id=2 That sends 3 variables over, however, GET values are highly insecure when using that info more than very temporarily for non-dangerous processes. Then, PHP recognizes these URL variables as data variables, so "action" becomes PHP variable $_GET['action'], or just $action for shorthand. Set your form method to POST, and action to a PHP file. Then in the PHP file, for a VERY simple mailer script, assuming you know the TO, SUBJECT, MESSAGE, and FROM fields... PHP Code: Should work ![]()
__________________ Retired Moderator/Member/Friend/Helper - it was great working with all of you! |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Quick Way to Fill in Most Various Online Forms | formfiller | Search Engine Optimization (SEO) | 1 | 11-24-2006 03:16 AM |
| Please Help Me With This Question | MrAlan | General Talk | 6 | 10-15-2006 08:39 PM |
| Question? | scopeweb | Help and Support | 2 | 09-22-2006 08:39 PM |
| A question | scottd | 7 | 07-11-2006 11:09 PM | |
| PR question | Notorious | 4 | 07-09-2006 04:50 PM | |