Jump to content


Photo

Need help on submit


  • Please log in to reply
1 reply to this topic

#1 PakiGangsta

PakiGangsta
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 03 August 2006 - 02:56 AM

<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
The one and only KingBowser :).

#2 Drumminxx

Drumminxx
  • Members
  • PipPipPip
  • Advanced Member
  • 92 posts
  • LocationUSA

Posted 03 August 2006 - 03:27 AM

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

<script language="javascript" type="text/javascript">
	function senddata(e)	{
		e.disabled=true;
		document.filter.submit();
	}
</script>

then in your select use this

<select name='select' onchange="senddata(this)">

the post value is what is being sent but its name is the name of the select box, in your case its

$_POST['select']

:: gucci.com ::
:: blockbuster.com ::

--------------------




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users