Forms... HELP!
Hello everyone:
I am trying to create a form on my site that will work as an oscar ballot. I've got everything set up pretty good but I'm having trouble getting a few things to work the way I need them to. I've spent hours and hours looking online but I just learned HTML a few months ago and it's all starting to look like greek!
Basically, my ISP provider will not allow me to run cgi scripts so I need to have the form submitted to me via email. I've got that working fine but what I need to do is:
1) Prohibit the form from being sent without completing all fields,
2) Redirect the user to a 'thank you' page while at the same time submitting the form to me via email
3) Disable the enter key from submitting the form
4) Not so much of a problem but I am getting alert messages from IE and Outlook by submitting the form this way. Is there anything I can do to prevent this?
Please help in any way and please try to be simple with me!
Here is the form section of my code (I've dummied up the categories for testing purposes!):
Name:
Best Picture - 5 pts
Sideways
The Aviator
Eternal Sunshine of the Spotless Mind
Incredibles
Before Sunset
Best Actor - 5 pts
Paul Giamatti - Sideways
Leonardo DiCaprio - The Aviator
Jim Carrey - Eternal Sunshine of the Spotless Mind
Jason Lee - Incredibles
Ethan Hawke - Before Sunset
Any comments?
Busy posted this at 21:30 — 2nd January 2005.
He has: 6,151 posts
Joined: May 2001
I'm in a bit of a rush, so hopefully this will be enough to help you out,
1/ use javascript for validation if you can't use server side, make sure the form is not displayed if javascript is disabled, ie use noscript tags
2/ might be easier to redirect and send from the redirect
3/ you dont want to do this, is really annoying
4/ what errors you getting?
the ?subject= .. isn't supported by all browsers these days, so you may want to use a hidden form field
amy74 posted this at 02:27 — 3rd January 2005.
They have: 6 posts
Joined: Aug 2004
I don't mean to sound like a dolt but I don't know javascript. I only studied a beginner HTML book.
If I redirect, what code do I need on the redirect page to pull the completed form from the prior page and email to me?
I really didn't need the enter key disabled so no bother to drop it.
The IE error states that the form is being submitted via email and that the email address will be revealed to the recipient and will send the form information without encrypting it. The Outlook one states a program is sending an email on my behalf and if I think it's a virus to cancel.
I removed ?subject=... didn't really need that either.
I appreciate the advice but I don't know how to apply it. Could someone please hold my hand a little on the redirect/sumbit and completing all fields tasks.
Amy
Busy posted this at 09:16 — 3rd January 2005.
He has: 6,151 posts
Joined: May 2001
Quick and nasty redirect use the meta refresh tag (set to 0), but redirect to the thank you page so you don't have to send the values to another page.
does your host allow server side scripting, ASP, PHP or something? as this is a better method.
I'm not to clued up on Javascript either, hopefully someone can give you some code or a link to find what you need. I'll wait for your reply on serverside stuff, if you don't I'll hunt some links down for you
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.