954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

url parameters

please help. i want pass variables from a php form to an online shopping payment systems

this is the url i have
https://usd.swreg.org/cgi-bin/s.cgi?s=133537&p=133537-2&q=1&v=0&d=0&Variable Pricing=<?php echo"$price";?>"
the url links the php form to the swreg.org but it doesn't transfer the price.
how can i modify the code to transfer the price obtained from the php form

gikonyo
Light Poster
35 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
 

Hard to tell if you do not show your code. Most likely $price does not get a value.

pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

I think so you are expecting something like this:-
URL:-"HTTP://www.daniweb.com?thread=34"
So to read this URL you have touse it in this way:-

<? echo $_GET['thread']?>

Hope this is clear....

IIM
Junior Poster
165 posts since Jun 2011
Reputation Points: 46
Solved Threads: 37
 

Not sure if it is a typo in your post but you URL isn't sending the price - it finishes at &Variable and also the $price variable should not be in speech marks. If this isn't a typo (I am not sure what value should be attached to Variable so I have removed for now) you should have

https://usd.swreg.org/cgi-bin/s.cgi?s=133537&p=133537-2&q=1&v=0&d=0&Pricing=<?php echo $price;?>"
simplypixie
Posting Pro in Training
447 posts since Oct 2010
Reputation Points: 116
Solved Threads: 82
 

thanks alot Junior Poster finally it has worked

gikonyo
Light Poster
35 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You