Solved

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

Posted on 2011-09-27
4
156 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can i modify my File download link ? 6 49
simplest php form 3 64
html5 auto send email 7 22
Python - desktop use 1 10
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

863 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

24 Experts available now in Live!

Get 1:1 Help Now