Solved

How do I get data from a textbox into this form?

Posted on 2011-09-27
4
153 Views
Last Modified: 2012-05-12
I need to get the value in a textbox into this PayPal button, replacing the static value GUID.

How do I do 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="foo@foobar.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Inventory Manager">
<input type="hidden" name="amount" value="48.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
<table>
<tr>
<td>
<input type="hidden" name="on0" value="GUID">GUID</td></tr>    <---------  data from textbox replaces GUID value
<tr>
<td>
<input type="text" name="os0" maxlength="200"></td></tr>
</table>
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>

Open in new window

0
Comment
Question by:rmmarsh
  • 2
4 Comments
 
LVL 1

Expert Comment

by:danbaugher
Comment Utility
By textbox do you mean a form input with text type (1 line) or a text area (multi line)?
0
 

Author Comment

by:rmmarsh
Comment Utility
one line... it contains a GUID which I need PayPal to return to me so I can encrypt some data using the GUID
0
 
LVL 9

Accepted Solution

by:
user_n earned 500 total points
Comment Utility
0
 

Author Closing Comment

by:rmmarsh
Comment Utility
Thank you... I thought that was it but wasn't sure... and I completely forgot about W3 Schools!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now