Alternative content

Get Adobe Flash player

Web Design Articles

Other Related Links

PayPal Star Developer Award Winner 2005

Setting up PayPal for Beginners
Buy Now Buttons


From Scorpion Systems

Last Page 1 , 2 , 3 , 4 , 5 , 6

Ok in order to make a drop down list you will need to learn a new field type called select. Lets take a look.

<select name="os0">
<option>1</option>
<option>2</option>
</select>

Now lets break it down.

<select name="on0">
this tells the browser that you are starting a List box named os0 one of the paypal option values.

<option>Small</option>
This adds the option Small to the list. You may repeat this line as many times as you want until you have all the options needed.

</select>
This tells the browser the list box is completed

Now lets look at it in action

Start with the original form from page 4 and add

<input type="hidden" name="on0" value="Size">
<select name="os0">
<option>X-Small</option>
<option>Small</option>
<option>Large</option>
<option>X-Large</option>
</select>

So your form looks like this

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="Payment@scorpionsystems.net">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="item_name" value="Your Item Name">
<input type="hidden" name="item_number" value="Your Item Number">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="return" value="http://success">
<input type="hidden" name="cancel_return" value="http://cancel">
<input type="hidden" name="on0" value="Size">
<select name="os0">
<option>X-Small</option>
<option>Small</option>
<option>Large</option>
<option>X-Large</option>
</select>
<input name="submit" type="submit" value="click here">
</form>

 

This will be your result

This concludes our tutorial if you wish to be notified of future tutorials send an email to Subscriptions@scorpionsystems.net with PayPal Tutorials in the subject line. Want your site set up professionaly contact us at sales@scorpionsystems.net

if you found this information useful tell others.
If you really found it useful Make a donation.

Last Page  1 , 2 , 3 , 4 , 5 , 6