Jump to content

Need help on submit


PakiGangsta

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.