khalidorama Posted October 28, 2007 Share Posted October 28, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/75110-passing-two-variables-to-url/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.