Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parse session variable to Paypal form

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
GB
Hi

I have the following code which works perfect.

Code:
<form action="[URL unfurl="true"]https://www.paypal.com/cgi-bin/webscr"[/URL] method="post" id="payPalForm">

                            <input type="hidden" name="item_name" value="quickbabysit.com Booking Fee" />
                            <input type="hidden" name="cmd" value="_xclick"/>
                            <input type="hidden" name="no_note" value="1"/>
                            <input type="hidden" name="business" value="your@paypalaccount.com"/>
                            <input type="hidden" name="currency_code" value="GBP"/>
                            <input type="hidden" name="no_shipping" value="0"/>
                            <input type="hidden" name="lc" value="GB"/>
                            
                            <input type="hidden" name="return" value="[URL unfurl="true"]http://demo.quickbabysit.com/parents/confirmation.aspx"/>[/URL]

                           
                            Booking Fee:<input name="amount" type="text" id="amount" size="20" runat="server" class="enquiryfield" />
                           
                            <input type="submit" name="Submit" value="Submit"/>

                            </form>
                        </div>

You will see at the moment the amount is an input field.

I can get the value of the a session into the field and this works when i hit submit but if i make the field not visible or disabled it doesnt take through the value.

Any ideas?

is there another way of doing this?

Thanks
 
Do you mean the value doesn't get put into the hidden amount field?

Post your code on how you are setting values to these fields..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top