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 Link to comment https://forums.phpfreaks.com/topic/16405-need-help-on-submit/ 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] Link to comment https://forums.phpfreaks.com/topic/16405-need-help-on-submit/#findComment-68299 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.