2012-03-06 11 views
0

を提出し、複数でフォームを送信しますか? go = gold - ユーザーがこのページにアクセスしたときに、「ゴールドメンバーシップ」の送信ボタンを自動的にクリックします(「go go = gold」がURLにある場合)。オートは、私がこのような何かを行うことができていますように、個人が、JavaScriptで、ボタンを提出するためにこのフォームを自動送信する方法を見つける必要があるボタン

私はPHPのヘルプは必要ありません。特定の送信ボタンを送信するためのJavaScriptだけです。

if ($_GET['go'] == 'gold') { 
    '** need the code I would put here to auto submit the form for the gold button' 
} 

((())読みやすい除去書式)

<form action="payments.php?do=order" method="post" name="MiFormulario"> 

<input type="hidden" name="s" value="" /> 

<input type="hidden" name="securitytoken" value="1331068360-a3bc1dae4834781f33c7100b66bade8f8d17fafd" /> 

<input type="hidden" name="do" value="order" /> 









<legend>Silver Membership</legend> 


Cost:<br /> 

<select name="currency[4]" style="width:125px"><optgroup label="3 Months *"> 
<option value="0_usd" >US$597.00</option> 
</optgroup> 
</select> 

<input type="submit" class="button" name="subscriptionids[4]" value="Order" style="font-weight:normal" /> 









<legend>Gold Membership</legend> 



Cost:<br /> 

<select name="currency[3]" style="width:125px"><optgroup label="3 Months *"> 
<option value="0_usd" >US$997.00</option> 
</optgroup> 
</select> 

<input type="submit" class="button" name="subscriptionids[3]" value="Order" style="font-weight:normal" /> 








<legend>Platinum Membership</legend> 

Cost:<br /> 

<select name="currency[2]" style="width:125px"><optgroup label="6 Months *"> 
<option value="0_usd" >US$1,997.00</option> 
</optgroup> 
</select> 

<input type="submit" class="button" name="subscriptionids[2]" value="Order" style="font-weight:normal" /> 








Cost:<br /> 

<select name="currency[1]" style="width:125px"><optgroup label="1 Year *"> 
<option value="0_usd" >US$50.00</option> 
</optgroup> 
</select> 

<input type="submit" class="button" name="subscriptionids[1]" value="Order" style="font-weight:normal" /> 






</form> 

答えて

0
echo "<script type='text/javascript'> $('formId').submit(); </script>"; 
関連する問題