Unstoppable Domains

Need a little help

Spaceship Spaceship
Watch

skrilla

VIP Member
Impact
11
Hello everyone.. Im looking to create a form that can post a total amount to Moneris.com and I'm having a bit of an issue creating the form itself.

Basically I need to post the total amount determined by which option they choose from a dropdown list of 1-10 1 = $100.00 2 = $200.00 etc.

Its for a website that we will need to sell tickets for the annual events.

I have spoke to Moneris and have the code to put in the Post... but cant seem to figure out how to program the form to send the total amount.

So far I have:
<? $qty = array("$option1", "$option2", "$option3", "$option4", "$option5");
$option1 = "113.00";
$option2 = "226.00";
$option3 = "339.00";
$option4 = "452.00";
$option5 = "565.00";

?>

<form action="https://esqa.moneris.com/HPPDP/index.php">
<input type="hidden" name="NAME=”ps_store_id” VALUE=”">
<input type="hidden" name="hpp_key” VALUE=”">
<input type="hidden" name="charge_total” VALUE=”$qty">
<select name="qty">
<option value="No" selected>Select one:</option>
<option value="$option1">1</option>
<option value="$option2">2</option>
<option value="$option3">3</option>
<option value="$option4">4</option>
<option value="$option5">5</option>
</select><br>
<input type="submit" name="Submit" align="right" value="Click to proceed to Secure Page">
</form>

I have no idea if Im even on the right page


Any help at all would be much appreciated :)

Bump!!
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Is there anyone who can help me out here? it seems something is wrong with my array.. it is displaying array instead of the amount declared..
 
0
•••
i believe u r missing the METHOD="POST" in form action. I am not sure this is your problem. Hope this helps.
 
0
•••
try changing the options in the form to:

<option value="No" selected>Select one:</option>
<option value="$qty[0]">1</option>
<option value="$qty[1]">2</option>
<option value="$qty[2]">3</option>
<option value="$qty[3]">4</option>
<option value="$qty[4]">5</option>
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back