Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1

Thread: Form

  1. #1
    Regular Coder
    Join Date
    Jun 2009
    Posts
    278
    Thanks
    78
    Thanked 2 Times in 2 Posts

    Form

    Im not going to show all of the ajax script but heres the form part which is php:

    PHP Code:
    <form>Difficulty: <input type="text" id="txt1" onkeyup="showHint(this.value)" /></form>
    <
    p>Info: <span id="txtHint"></span></p>

    <
    form action="People_Score.php" method="get">
        <
    br><br>
    1. Who was the Scranton Branch Manager? <input type="text" name="MichaelScott01" /> 
        <
    br>
    2. What is Dwights job title? <input type="text" name="Dwight01" /> 
        <
    br>
    <
    input type="submit" />
    </
    form
    But as you can see, for the ajax to work I had to make an entirely new form. Which means when you click submit, the ajax part wont be submitted with the rest of the form. How can combine them so the ajax accually works?


    Edit: OMG, What am I talking about! It does work, lol, I dont know what happened the first time.
    Last edited by Ndogg; 12-30-2009 at 08:07 AM.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •