madcrazy1 Posted September 5, 2008 Share Posted September 5, 2008 2 form fields: send same answer value to 2 different rows but with only manually selecting the first form fileld choice. whatever I pick for the first question will automatically be populated as an answer for the second question filed. example i select answer 10 from drop down form field 1 and "before I click submit" ---- answer 10 is selected automatically for drop down menu choice 2 in other words, there are 2 choices to MAKE ON A FORM i CREATED. i want to be able to select an answer for the first question have it sent to "sql row1"= ans1 then have the second question that uses a different input variable, use the same answer but send it to "sql row2"= ans1 Please help, i will be a miracle if someone understands this Link to comment https://forums.phpfreaks.com/topic/122855-solved-logic-send-same-value-to-2-different-rows-hope-everyone-is-still-sane/ Share on other sites More sharing options...
gaza165 Posted September 5, 2008 Share Posted September 5, 2008 Some code would be useful with some example data... G Link to comment https://forums.phpfreaks.com/topic/122855-solved-logic-send-same-value-to-2-different-rows-hope-everyone-is-still-sane/#findComment-634479 Share on other sites More sharing options...
madcrazy1 Posted September 5, 2008 Author Share Posted September 5, 2008 the code is what i am trying to get Link to comment https://forums.phpfreaks.com/topic/122855-solved-logic-send-same-value-to-2-different-rows-hope-everyone-is-still-sane/#findComment-634482 Share on other sites More sharing options...
madcrazy1 Posted September 5, 2008 Author Share Posted September 5, 2008 <form id="form1" name="form1" method="post" action="memyselfandI"> <input name="" type="hidden" id="question1"> <select name="question1" > <option value="ans1">MYANSWERIS1</option> <option value="ans2">MYANSWERIS2</option> <input name="" type="hidden" id="question2"> <select name="question2" > <option value="ans1">MYANSWERIS1</option> <option value="ans2">MYANSWERIS2</option> <input type="submit" name="Submit" value="*Submit Changes*"></form> I only want to select first question and have question2 get automatically selected with the same answer =) Link to comment https://forums.phpfreaks.com/topic/122855-solved-logic-send-same-value-to-2-different-rows-hope-everyone-is-still-sane/#findComment-634491 Share on other sites More sharing options...
madcrazy1 Posted September 5, 2008 Author Share Posted September 5, 2008 Why was this moved to javascript help? i want to be able to do this using php :-\ Link to comment https://forums.phpfreaks.com/topic/122855-solved-logic-send-same-value-to-2-different-rows-hope-everyone-is-still-sane/#findComment-634495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.