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
https://forums.phpfreaks.com/topic/75110-passing-two-variables-to-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.