473,388 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Submit a form by a link

So I have an Amazon.com Payments account and basically people must click an Amazon button to purchase the one item I'm selling. But the whole button is powered by a <form> tag with a bunch of <input type="hidden"> elements.

Anyways, is there any way to convert this post form with only hidden elements to a text link someone can just click on?

Expand|Select|Wrap|Line Numbers
  1. <form action="https://authorize.payments.amazon.com/pba/paypipeline" method="post">
  2.   <input type="hidden" name="immediateReturn" value="1" >
  3.   <input type="hidden" name="collectShippingAddress" value="0" >
  4.   <input type="hidden" name="signatureVersion" value="2" >
  5.   <input type="hidden" name="signatureMethod" value="####" >
  6.   <input type="hidden" name="accessKey" value="####" >
  7.   <input type="hidden" name="referenceId" value="####" >
  8.   <input type="hidden" name="amount" value="USD 11.95" >
  9.   <input type="hidden" name="signature" value="####/####=" >
  10.   <input type="hidden" name="isDonationWidget" value="0" >
  11.   <input type="hidden" name="description" value="Listing Fee" >
  12.   <input type="hidden" name="amazonPaymentsAccountId" value="####" >
  13.   <input type="hidden" name="returnUrl" value="####" >
  14.   <input type="hidden" name="processImmediate" value="1" >
  15.   <input type="hidden" name="cobrandingStyle" value="logo" >
  16.   <input type="hidden" name="abandonUrl" value="####" >
  17. <input type="image" src="http://g-ecx.images-amazon.com/images/G/01/asp/golden_large_paynow_withmsg_whitebg.gif" border="0">
  18. </form>
Sep 8 '11 #1
3 2090
drhowarddrfine
7,435 Expert 4TB
Yes and no. You can change the input from type 'image' to type 'button' and give it a value of whatever text you want but this will show a button. That button can be styled in several different ways though.
Sep 9 '11 #2
I dont want to utilize the <form> at all. I just want it to be a straight link, but i'm unsure if that's even possible?

I know with <form method="get"> I can do http://www.domain.com/script.php?var...variable=value

but can you do something similar to a post form?
Sep 9 '11 #3
drhowarddrfine
7,435 Expert 4TB
Most likely Amazon would be looking for a POST and not a GET so their code won't accept it. But I'm just assuming cause that would be the practice.
Sep 9 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: vishal | last post by:
hello friends i have one php script which generates html page containing form. what i want is submit this form using php script. pls give me some idea that how can i submit form using php...
3
by: Mark Michel | last post by:
Hi. I have made an html form which I would like to send by e-mail. When the recipient receives the e-mail form, I would like them to be able to fill it out and click the Submit button which will...
2
by: Matt | last post by:
The problem is I have 3 buttons that need to submit the form to different URL. My approach is to declare <input type="submit"> rather than <input type="button">. And put the following in the...
4
by: btopenworld | last post by:
I am submitting a form using an image as the link to a js file. The image calls a js function which checks fields- issuing alerts for errors - if no errors it then submits the form. I would like...
2
by: Terence Parker | last post by:
How does one go about submitting a form with a link - but submitting it to a new window AND to a page different to that described within the action="" option of the <form> tag? Say, for example,...
6
by: CJM | last post by:
Can somebody clarify if/how/when a simple form is submitted when the <Enter> key is pressed? As I understood it, if you have a form with a single submit button, if enter is pressed, the form...
1
by: Matt | last post by:
The problem is I have 3 buttons that need to submit the form to different URL. My approach is to declare <input type="submit"> rather than <input type="button">. And put the following in the...
1
by: sam | last post by:
Hi All, I have a form with 4 checkboxes and 4 text boxes and one submit button. The form should work such a way when I select a particular checkbox and give a url in text box, the form should...
1
by: aris1234 | last post by:
Hi All.... i have code html like this : <form> Name : <input type="text"> age : <input type="text"> <input type = "submit"> </form>
1
by: metalforever | last post by:
How do you redirect a form after submit(form sends email) ? This is pretty urgent for me. I have included the code in a pastebin. http://pastebin.org/249014 process_form sends the email. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.