PDA

View Full Version : "Accept terms" form submission



invertigo
07-01-2006, 04:09 AM
Script: "Accept terms" form submission
http://www.dynamicdrive.com/dynamicindex16/acceptterm.htm

Hello.
In regards to the above script, just wondering how I direct the user to a certain page after "accepting" the terms. On my website I have 2 entrance points on the same page, both which need to say "I accept" or "I agree" before entering, but both points will take the user to a different section of my site. So where should I put the URLs etc?

Any help would be much appreciated.
Cheers.

jscheuer1
07-01-2006, 04:57 PM
Just set the action="url" and method="get" on your form, ex:


<form action="somepage.htm" method="get" onsubmit="return defaultagree(this)">

SvenM
02-02-2007, 10:06 PM
Thanks guys for this form, exactely what i needed!

But if i direct a user to my shop after accepting the terms, there is a huge, ugly url in the browser with all my terms that are in the accept terms form.

Is there any way to have a nice, clean url after directing the user to a page after accepting the terms form?

thetestingsite
02-02-2007, 10:28 PM
Change the form method from "Get" to "Post". This will look like:



<form method="POST">


Hope this helps.

mburt
02-02-2007, 10:41 PM
GET will display the info in the url, as: var1=content&var2=content2, etc.

SvenM
02-02-2007, 11:29 PM
Yes, that&#180;s it!
Thanks!