#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    92
    Rep Power
    13

    javascript:document.FORMNAME.submit();


    hi, 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?? someone suggest me to use javascript:document.FORMNAME.submit();

    how am i going to use that?

    my form is like this:
    PHP Code:
    print "<form action=\"$script\" method=\"post\">\n"
    and my link (to be clicked to go to another page):
    PHP Code:
    print "<td bgcolor=$table_color_2 width=90%><font face=\"$font_face\" color=\"$font_color\" size=2><a href=\"script?quiz=$quiz_id\"><b>$quiz_name</b><br><font size=1>$quiz_desc</font></font></a></td>"
    pls advice...
  2. #2
  3. No Profile Picture
    Just Diggity
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Sherman Oaks, CA
    Posts
    126
    Rep Power
    13
    What you want to do is give your form a name

    <form name="myForm">
    ...
    </form>

    And then change your link to:

    <a href="javascript: document.myForm.submit();">click</a>

    That should submit your value to the next page

    good luck and happy holidays!
    Dave Pedowitz

IMN logo majestic logo threadwatch logo seochat tools logo