Jump to content

Archived

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

PakiGangsta

Need help on submit

Recommended Posts

<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 value
if (isset($_POST[??])
{
}
and for stoping double submit can someone help me

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

×

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.