Correct code for "Submit" button.
Hey,
I am really having trouble getting my submit button working. I have been given some code but it doesnt work, i get an error.
What info do i need to give someone to help me get it to work?
This is what i was given -
Line 1 tells your form to post to the mailgate server
Line 2 tells the mailgate server where to send the email (change this to your email address
Line 3 forces the subject line of the email – if you want a field in your form to do this then just name the field “subject”
Line 4 tells the email program where to send the user to after they have submitted an email.
Now that all seems to be exactly what i want for now (until i learn more how better to use forms) but it wont work.
Any help would be greatly appreciated. The site helper i have from my webhoster is http://www.site-helper.com but it doesnt give me much info on what i need to code.
I currently use Dreamweaver 8.
Thanks in advance.
Complete Newbie to web creation.
Busy posted this at 23:11 — 24th August 2007.
He has: 6,151 posts
Joined: May 2001
that is only a snipet of code, and I noticed line 3 and 4 are around the wrong way for the description.
Most forms need a server side language to submit, redirect, continue etc (like PHP, ASP, cold fusion ...) but a simple email address form can be done with javascript (although not the prefered method)
a simple form is this:
your name
your email
thats just a very basic form that would display boxes for name, email and password, the "pageitdoesthestuff.php" is the actual brain of the script (which can be the same page) as it then (or should) check all the fields are filled in correctly, if not will display the form again with an error message, if correct then will either display the content or send to another page.
There are a few free mail forms out there if your web host allows PHP etc
comfort candles posted this at 09:45 — 29th August 2007.
He has: 4 posts
Joined: Aug 2007
Any chance you could help me out with one of those free sites? The only ones i managed to find included links back to the code developer and/or and ad, or off-site form hosting.
I am really after a basic form, about 15 fields, all text. I am thinking php is my best bet.
Complete Newbie to web creation.
mycomfortcandles.com
Busy posted this at 23:27 — 29th August 2007.
He has: 6,151 posts
Joined: May 2001
places like hotscripts.com has lots of code, even if you just get a simple form and pull it apart to find out how it works and build yourself a form suitable for your needs.
I think mailform, or formmail (or was it mattsmail) is a popular downloaded form
webwiz posted this at 05:13 — 30th August 2007.
He has: 629 posts
Joined: May 2007
If what you're after is a contact form, you may like to consider this service:
http://contactify.com/
In my experience, spambots love contact forms. I took precautions with mine, yet within days I got dozens of spam messages. I looked at this free service; it uses the latest anti-spam techniques and is well designed.
The service is paid for by advertising. The "thank-you" page carries an ad. Not too obtrusive, I would have thought.
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.