Need to get a form working

Had your computer crash on you, or a website shows wrong, or your printer went dead on you? Come on in...

Moderator: Crew

User avatar
Chroelle
Admin emeritus
Posts: 9870
Joined: Fri Feb 17, 2006 9:19
Location: Location, location...

Need to get a form working

Post by Chroelle »

This form is generated by Frontpage, but it seems I cannot get it to work.
http://www.connect-webdesign.dk/Bestilling.htm

It is a job for a customer so it is rather annoying that I cannot get it to work easily.

When you submit then it takes you to a weird place...
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)

www.paed-it.dk - My blog in Danish

Clothes make the man. Naked people have little or no influence on society.
--Mark Twain
User avatar
Maz
Admin emeritus
Posts: 1938
Joined: Thu Mar 16, 2006 21:11
Location: In the deepest ShadowS

Post by Maz »

This line tells where the sent info is going, and to what page you'll be redirected:

Code: Select all

<FORM METHOD="POST" ACTION="_derived/nortbots.htm" name="Bestilling" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit webbot-action="--WEBBOT-SELF--">
Especially the action and onSubmit attributes.
In default form the action tells where to send the data, and where to redirect the browser. (Usually to some page which can take the sent information and handle it, some scripting (php, jave, CGI...) needs to be used, pure HTML does not really cope with it.

onSubmit allows person to do some data validation check. You can specify a script which can cancel the submission if incorrect data is sent. I have never used that myself. (Actually I did not even know it is part of the html standard O_o )

Here's more info:
http://www.htmlcodetutorial.com/forms/_ ... ubmit.html
http://www.w3schools.com/tags/tag_form.asp
http://www.w3.org/TR/html4/interact/forms.html
(and more can be easily found from google.
User avatar
Chroelle
Admin emeritus
Posts: 9870
Joined: Fri Feb 17, 2006 9:19
Location: Location, location...

Post by Chroelle »

Thanks a bunch. I found another solution this afternoon though. Feel kinda bad I didn't tell in here before you attacked this. :blush:
Currently testing Life version 2.9 (With added second child)
(Beta testing in progress)

www.paed-it.dk - My blog in Danish

Clothes make the man. Naked people have little or no influence on society.
--Mark Twain