PakiGangsta Posted August 3, 2006 Share Posted August 3, 2006 <form action='dex.php' name="filter" method='POST'><select name='select' onchange='this.disabled=true;dex.value=this.value;submit();'>what would be the post valueif (isset($_POST[??]){}and for stoping double submit can someone help me Quote Link to comment Share on other sites More sharing options...
Drumminxx Posted August 3, 2006 Share Posted August 3, 2006 I don't think a double submit would be a problem on a select (drop down) box but in case it is you could more easily put it into a function.oh yea, this is javascript and really doesn't belong here, sorry mods but its an easy one[code]<script language="javascript" type="text/javascript"> function senddata(e) { e.disabled=true; document.filter.submit(); }</script>[/code]then in your select use this[code]<select name='select' onchange="senddata(this)">[/code]the post value is what is being sent but its name is the name of the select box, in your case its[code]$_POST['select'][/code] Quote Link to comment 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.