LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2009, 04:16 PM   #1
dancarr17
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
Using $_GET Variable on Paypal order form


Hello,

Here is the setting:
I'm providing an advertising service online using a keyword system. The system is set so that the customer may purchase the keyword using Paypal after the keyword is searched and available.

Once the customer has selected the the available Keyword they want to use, the system requires for the return-URL of the landing ordering page to be able to capture the value of the "keyword" using the GET method.

Here's the issue:
We're unable to figure out how to set the order form so that on Paypal, it will reflect the purchasing of the specific keyword. Since there are thousands upon thousands of possible keyword combinations, it's not like we can create a shopping cart for keywords. If anyone could point us in the right direction it would be a blessing. Thanks in advance.
 
Old 03-30-2009, 06:53 PM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Passing the keyword around as a get variable would be quite dangerous since the GET is visible and can be easily modified. For something like this I would suggest that you store the purchases in a cart and associate the purchases with a hash string (MD5 is probably good enough) Reserve the keywords for a fixed period of time if a payment is made within that time all well and good, otherwise release the contents of the cart for others to purchase.
 
Old 04-01-2009, 10:26 PM   #3
dancarr17
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by graemef View Post
Passing the keyword around as a get variable would be quite dangerous since the GET is visible and can be easily modified. For something like this I would suggest that you store the purchases in a cart and associate the purchases with a hash string (MD5 is probably good enough) Reserve the keywords for a fixed period of time if a payment is made within that time all well and good, otherwise release the contents of the cart for others to purchase.
Thanks Graemef,

I got in touch with the company who provided the initial code and they mentioned I needed to add a code similar to this: <input type="hidden" name="item_name" value="Broadcast" | <?=$keyword?> on the order form for paypal. I tried it and I'm getting an error. Do I need to make the paypal order form in PHP?
 
Old 04-01-2009, 11:28 PM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Try changing it to:
<input type="hidden" name="item_name" value="Broadcast" | <?php echo $keyword ?>
So long as the form is a .php file then this should be properly processed by the php engine.
 
  


Reply

Tags
codes, forms, paypal, php, scripts


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to POST variable in PHP without using a form RMLinux Linux - Newbie 1 09-25-2008 01:53 AM
html form - order of returned elements rblampain Programming 2 04-26-2007 07:13 AM
LXer: Building An Order Form LXer Syndicated Linux News 0 04-15-2006 05:33 AM
strange value of variable after a php form jeanpba Linux - Software 0 11-15-2005 02:38 AM
javascript variable in a form rksprst Programming 3 01-05-2005 04:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration