link & select box.

They have: 164 posts

Joined: Nov 2001

i want to use a link instead of a submit button to go to the next page...

pls go to this page:
http://www.certifyexpress.com/exam/bea/2.php

i want to go to the next page by just clicking the questions. i will delete off the radion button and the submit button.

the problem i'm facing is, i can't pass thevalue of the select box (Number of questions). if i choose 20, it will only show me to 10 questions.

how can i solve that problem??

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

You could put the select box in a form with a name. Then try this:

<a href="#" onClick="form_name.submit();">Go!</a>
'If you want to pass "quiz=1" as well, you could create a hidden form element... something like this:
<input type="hidden" name="quiz" value="0">

<a href="#" onClick="form_name.quiz.value='1';form_name.submit();">Quiz 1</a>
<a href="#" onClick="form_name.quiz.value='2';form_name.submit();">Quiz 2</a>
'I don't remember how to make it cross browser... something like document.forms.form_name.submit() But I don't know for sure.

Mark Hensler
If there is no answer on Google, then there is no question.

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.