Jump to content

Updating html form.


killah

Recommended Posts

I currently have my html payment form.

 

How can i make it so that a user can input the quantity and it update's the price & qty automaticly?

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
	<input type="hidden" name="cmd" value="_xclick">
	<input type="hidden" name="business" value="'.$game['paypal'].'">
	<innut type="hidden" name="item_name" value="Deadly Killah|Donator Pack|1|'.$ir['userid'].'">
	<input type="hidden" name="amount" value="10.00">
	<input type="hidden" name="no_shipping" value="1">
	<input type="hidden" name="return" value="http://'.$_SERVER['HTTP_HOST'].'/'.$_SERVER['PHP_SELF'].'?donator=dppack&tp=paid">
	<input type="hidden" name="cancel_return" value="http://'.$_SERVER['HTTP_HOST'].'/'.$_SERVER['PHP_SELF'].'?donator=dppack&tp=cancel">
	<input type="hidden" name="notify_url" value="http://'.$_SERVER['HTTP_HOST'].'/ipnsystem.php">
	<input type="hidden" name="cn" value="'.$ir['userid'].'">
	<input type="hidden" name="currency_code" value="USD">
	<input type="hidden" name="tax" value="0">
	<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make Payment With Paypal Now!!! SECURE! FAST!">
</form>

 

I would like to update this <input type="hidden" name="amount" value="10.00"> with the new quantity * 10.00

 

And update this <innut type="hidden" name="item_name" value="Deadly Killah|Donator Pack|1|'.$user['userid'].'"> (1) with the new quantity

 

Any direction's and/or code's would be highly appreciated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.