HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 21st, 2004, 02:29 PM
sturgisdy sturgisdy is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Miami
Posts: 1 sturgisdy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Pay pal subscriptions

I am building a web site in FP 2002 with html. I am using a pay pal subscription for monthly payments.
I have to be able to have the 4.25 and the 12.75 work within a drop down window. Once you click on one of the prices you then go to the pay pal button. When you click on that button it then registers with pay pal for the chosen amount. The way I have it written no matter which amount I click on the amount 12.75 always comes up. What do I need to do.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="yongued@bellsouth.net">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="on1" value="Prices">Prices</td>
<td>
<select name="os1">
<option value="Select Monthly Payment">Select Monthly Payment
<option value=<input type="hidden" name="a3" value="4.25">4.25
<option value=<input type="hidden" name="p3" value="12">
<option value=<input type="hidden" name="t3" value="M">
<option value=<input type="hidden" name="src" value="1">
<option value=<input type="hidden" name="sra" value="1">

<option value=<input type="hidden" name="a3" value="12.75">12.75
<option value=<input type="hidden" name="p3" value="12">
<option value=<input type="hidden" name="t3" value="M">
<option value=<input type="hidden" name="src" value="1">
<option value=<input type="hidden" name="sra" value="1">


</select></td>
<td>
<input type="hidden" name="no_note" value="1">


<table width="387"><tr><td width="221"><input type="hidden" name="on0" value="2004"> </td>
<td width="156"><select name="os0"><option value="Miami Dolphins ">Miami Dolphins <option value="New York Jets">New York Jets<option value="Buffalo Bills">Buffalo Bills<option value="New England Patriots">New England Patriots</select>
</td></tr></table>
<option value<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but31.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="a3" value="4.25"><input type="hidden" name="p3" value="12"><input type="hidden" name="t3" value="M"><input type="hidden" name="src" value="1"><input type="hidden" name="sra" value="1">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but31.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" width="72" height="32">
<input type="hidden" name="a3" value="12.75"><input type="hidden" name="p3" value="12"><input type="hidden" name="t3" value="M"><input type="hidden" name="src" value="1"><input type="hidden" name="sra" value="1"></form></form>

Reply With Quote
  #2  
Old January 23rd, 2004, 09:08 AM
haffej haffej is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 87 haffej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
i don't understand the approach you're taking here. first, be safe and add </option> after each item in the select list. ie:

<option value="Select Monthly Payment">Select Monthly Payment</option>

second, what is this?

<option value=<input type="hidden" name="a3" value="4.25">4.25

it looks like you're trying to put a hidden element within an element... now i'm no expert, but i'm not sure you can do this.

in fact, your p3, t3, src, sra values are identical whether the user chooses the 4.25 or 12.75, so don't bother trying to put their values in options.

here's what i'd do:

<select name="os1">
<option value="Select Monthly Payment">Select Monthly Payment</option>
<option>4.25</option>
<option>12.75</option>
</select>

<input type="hidden" name="p3" value="12">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">

as for your a3 value... could you name your select box a3, or must it be os1? if you need them separate, you could probably use javascript to change the value of a hidden input element when the option is changed in the os1 select box. so when the user changes the select box, call a javascript function to modify the hidden a3 value... something like

<input type="hidden" name="a3" value="">

<select name="os1" onchange="seta3value(this)">

(i'm not sure how you'd have to pass the value of the select box, that's just a guess)

and then your function would be something like

function seta3value(os1value) {
form.a3.value = os1value;
}

i'm not positive all of this would work, but those are the approaches i'd try out.... hope this is of some help.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Pay pal subscriptions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT