Click to See Complete Forum and Search --> : Rank 'Em script...needs help


krismisz
01-14-2003, 11:03 PM
Okay, I'm looking for some good help here. I used the script on the following page from JavaScript Source:

http://javascript.internet.com/forms/rank-'em.html

However, the script was not set to send the form and I can't figure out how to make the "send survey" button send in the form. I'm new at this so any easily understandable help would be much appreciated!

Thanks in advance!
krismisz

khalidali63
01-15-2003, 01:03 AM
look for these lines of code in the havascript section

if (!badrank) {
// this is a "phony submit" for testing purposes
document.clear();
document.write("success! it be sweet<br>\n");
}


and replace them with these lines



if(!badrank){
document.test_form.submit();
}


the code above will submit your form
but you still need to specify that where will this form data be submitted to.For that add an action attribute in the form element

<form name="test_form" action="your form processing utility address" method="post">

Khalid

krismisz
01-15-2003, 05:33 PM
Thank you so much khalidali63!