Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 12-19-2005, 08:55 PM   #1
Lpspider
Regular Member
 
Lpspider's Avatar
 
Join Date: Dec 2005
Posts: 122
Lpspider will become famous soon enough
Default forms - question

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.
Lpspider is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 12-19-2005, 11:15 PM   #2
compuXP
Retired Member
 
compuXP's Avatar
 
Join Date: Dec 2005
Posts: 139
compuXP will become famous soon enough
Default Re: forms - question

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:
<?php
//Variables $to, $message, and $subject have been placed. The FROM
//value is added here in the script.

mail($to$subject$message"From:Person<email@domain.com>");

//There. Mail sent.
?>

Should work
__________________
Retired Moderator/Member/Friend/Helper - it was great working with all of you!
compuXP is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

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 Google 7 07-11-2006 11:09 PM
PR question Notorious Google 4 07-09-2006 04:50 PM


All times are GMT. The time now is 09:34 PM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.