Jump to content

Passing Two variables to URL.


khalidorama

Recommended Posts

Hi,

I am developing simple test program in PHP. I am querying my Sql database .

I am using Next/Previous buttons so that I can review all questions. I want to add additional code so that when i chose an answer by clicking the combo box , a DML statement is issued so that I save a record in the database for the chosen choice. I want a solution without java script. This is done by sumbit() method. So how can I handle the submit() method with two variables , one for the question number and a second one for the chosen choice?!. when i add the submit() method to onclick event on the combo box , only the combo box variable is passed . so i need another method to pass a variable containing the chosen choice to URL and then when i click next/previous button , the submit() method will be called with two variables, one the chosen choice and the second question number. does anyone of you know how to achieve this ?.

 

Thanks a lot for your help in advance.

Regards

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.