DrTrans Posted January 18, 2012 Share Posted January 18, 2012 What I'm wanting to do is pass the $propertyid = "1"; threw my select value as you can see. so it passes variable so to speak.' print "<td>Control:<form action=\"dashboard.php\" method=\"GET\" target=\"_self\"> <select name=\"control\" onChange=\"this.form.submit()\"> <option selected></option> <option>Take a Payment</option> <option>Print Ledger </option> <option>-----------------</option> <option value=\"comadd?propid=$propertyid\">Add Communication</option> <option>----------------</option> <option>Modify Property</option> <option>Remote Property</option> </select></td>"; Quote Link to comment https://forums.phpfreaks.com/topic/255307-select-option-passing-variables/ Share on other sites More sharing options...
scootstah Posted January 18, 2012 Share Posted January 18, 2012 Okay. And? Quote Link to comment https://forums.phpfreaks.com/topic/255307-select-option-passing-variables/#findComment-1308978 Share on other sites More sharing options...
DrTrans Posted January 18, 2012 Author Share Posted January 18, 2012 Im confused on to why it does not work. Quote Link to comment https://forums.phpfreaks.com/topic/255307-select-option-passing-variables/#findComment-1308979 Share on other sites More sharing options...
scootstah Posted January 18, 2012 Share Posted January 18, 2012 What does it do? Quote Link to comment https://forums.phpfreaks.com/topic/255307-select-option-passing-variables/#findComment-1308980 Share on other sites More sharing options...
DrTrans Posted January 18, 2012 Author Share Posted January 18, 2012 passes: "dashboard.php?control=comadd" not "dashboard.php?control=comadd&propid=1" Quote Link to comment https://forums.phpfreaks.com/topic/255307-select-option-passing-variables/#findComment-1308985 Share on other sites More sharing options...
scootstah Posted January 18, 2012 Share Posted January 18, 2012 Does it work if you change it to comadd&propid=$propertyid Quote Link to comment https://forums.phpfreaks.com/topic/255307-select-option-passing-variables/#findComment-1308986 Share on other sites More sharing options...
DrTrans Posted January 18, 2012 Author Share Posted January 18, 2012 Thanks Scoot heres the response "dashboard.php?control=comadd%26propid%3D7" Quote Link to comment https://forums.phpfreaks.com/topic/255307-select-option-passing-variables/#findComment-1308989 Share on other sites More sharing options...
DrTrans Posted January 18, 2012 Author Share Posted January 18, 2012 It does not see the separator of the variables it puts in %26. Quote Link to comment https://forums.phpfreaks.com/topic/255307-select-option-passing-variables/#findComment-1308990 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.