Solved

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

Posted on 2011-09-27
4
163 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
ID: 36710779
By textbox do you mean a form input with text type (1 line) or a text area (multi line)?
0
 

Author Comment

by:rmmarsh
ID: 36710940
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
ID: 36710970
0
 

Author Closing Comment

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

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

820 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