| | |
Need Help Please!
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2007
Posts: 1
Reputation:
Solved Threads: 0
Hi Guys
I need your help as what i am trying to develop is doing me head in :-)
I am developing a PHP form which basically adds two variable together. The final number then needs to placed in to a HTML url which triggers the image to be loaded on the next page. I am having problems creating the 'html link' on the echo request. Upon submission the url( with the number) needs to open in the same window.
the html link code looks like this:
What i need to know is how do put added together number in place of the 4.
Below is the script for adding the numbers together:
What is the correct form to put $num1 into the url??
Hope you can help!
Thanks
Rob
I need your help as what i am trying to develop is doing me head in :-)
I am developing a PHP form which basically adds two variable together. The final number then needs to placed in to a HTML url which triggers the image to be loaded on the next page. I am having problems creating the 'html link' on the echo request. Upon submission the url( with the number) needs to open in the same window.
the html link code looks like this:
index.htm?pic=4What i need to know is how do put added together number in place of the 4.
Below is the script for adding the numbers together:
PHP Syntax (Toggle Plain Text)
<? if ($_POST['submit']) { $frame1 = $_POST['frame1']; $mount1 = $_POST['mount1']; $num1 = $frame1 + $mount1; echo "<a href="\index.htm?pic=".$num1."\">"</a>; } ?>
What is the correct form to put $num1 into the url??
Hope you can help!
Thanks
Rob
Last edited by stagnation; Sep 11th, 2007 at 12:56 pm.
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
The way you've done it looks ok. My psychic debugging skills, however, are telling me it's something more...
You do know that variables in the URL are GET variables and not POST?
You do know that variables in the URL are GET variables and not POST?
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
![]() |
Other Threads in the PHP Forum
- Previous Thread: Javascript Variables in PHP
- Next Thread: Pass Javascript variable to PHP code
| Thread Tools | Search this Thread |
.htaccess alerts apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code convert cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google hack href htaccess html htmlspecialchars image include insert ip javasciptvalidation javascript joomla keywords limit link login mail matching menu methods mlm multiple mysql network object oop paypal pdf php problem query radio random recursion recursive redirect remote script search securephp server sessions shot sms source space sql subscription syntax system table tutorial tutorials update upload url validator variable video web youtube






