F
Frank H. Shaw
The following code is a sniblit of code which does the following the user is
displayed a radio button and the user choices either each or by dozen pricing
to go in to shopping cart in this case the amount which is the dollor value
is sent to Paypal. I want to also send a different item_number depending on
the radiobutton selected by the user. Example code below for radio button
<input TYPE="radio" CHECKED NAME="amount" VALUE="20.95"></span><span
style="font-size: 10.0pt; font-family: Trebuchet MS">By each</span></p>
<input TYPE="radio" NAME="amount" VALUE="225.00"></span><span
style="font-size: 10.0pt; font-family: Trebuchet MS">By Dozen</span></p>
Since there are no if statements how do a do a little logic in the form code
below or radiobutton code above to go to paypal when paypal button is
selected the following is a sniplet of that code in the form which uses
hidden input fields
<input type="hidden" name="item_number" value="212-E">
<input type="hidden" name="amount" value="20.95">
the logic needs to be put around the above code depending on which radio
button is selected to support the code below
<input type="hidden" name="item_number" value="212-D">
<input type="hidden" name="amount" value="225.00">
It is my understanding that I would have to do it in script for this type of
logic to be supported I am I correct and what scripting languge would I have
to use I would be going to a unix box using redhat and mybe PHP will front
page support this and Can I enbed the PHP script or another scripting lauague
in the existing HTML code. Note at this point I am using the front page
extensions to a unix boxs.
ANY IDEAS ON WHAT I CAN DO??
THANKS
displayed a radio button and the user choices either each or by dozen pricing
to go in to shopping cart in this case the amount which is the dollor value
is sent to Paypal. I want to also send a different item_number depending on
the radiobutton selected by the user. Example code below for radio button
<input TYPE="radio" CHECKED NAME="amount" VALUE="20.95"></span><span
style="font-size: 10.0pt; font-family: Trebuchet MS">By each</span></p>
<input TYPE="radio" NAME="amount" VALUE="225.00"></span><span
style="font-size: 10.0pt; font-family: Trebuchet MS">By Dozen</span></p>
Since there are no if statements how do a do a little logic in the form code
below or radiobutton code above to go to paypal when paypal button is
selected the following is a sniplet of that code in the form which uses
hidden input fields
<input type="hidden" name="item_number" value="212-E">
<input type="hidden" name="amount" value="20.95">
the logic needs to be put around the above code depending on which radio
button is selected to support the code below
<input type="hidden" name="item_number" value="212-D">
<input type="hidden" name="amount" value="225.00">
It is my understanding that I would have to do it in script for this type of
logic to be supported I am I correct and what scripting languge would I have
to use I would be going to a unix box using redhat and mybe PHP will front
page support this and Can I enbed the PHP script or another scripting lauague
in the existing HTML code. Note at this point I am using the front page
extensions to a unix boxs.
ANY IDEAS ON WHAT I CAN DO??
THANKS