| | |
How put "text" directly next to a variable in a URL?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Dec 2007
Posts: 2
Reputation:
Solved Threads: 0
How can I put "text" directly next to a variable in a URL?
My variable is $bandodd. It will have a numeric value.
In the resulting URL, I want the value of $bandodd to be right next to the text - "AA" - so it will look like this: "?size=32AA"
See the code below, which doesn't work. It doesn't read the variable because it thinks it's "$bandoddAA"
However, I can't figure out any character I can put in between the variable and the text that will "disappear" and make it 32AA in the URL.
Please help!
}
if(checkNum($val1) === TRUE && $val1 < 33 && $val2 - $val1 == 0 && $val2 + $val1 <= 120 && $val2 + $val1 >= 50 ){
header("Location: http://www.online.com/bra_school_bra_fit_calculator_test.php?size=$bandoddAA");
}
My variable is $bandodd. It will have a numeric value.
In the resulting URL, I want the value of $bandodd to be right next to the text - "AA" - so it will look like this: "?size=32AA"
See the code below, which doesn't work. It doesn't read the variable because it thinks it's "$bandoddAA"
However, I can't figure out any character I can put in between the variable and the text that will "disappear" and make it 32AA in the URL.
Please help!
}
if(checkNum($val1) === TRUE && $val1 < 33 && $val2 - $val1 == 0 && $val2 + $val1 <= 120 && $val2 + $val1 >= 50 ){
header("Location: http://www.online.com/bra_school_bra_fit_calculator_test.php?size=$bandoddAA");
}
Last edited by miguel40; Dec 10th, 2007 at 2:20 am.
![]() |
Other Threads in the PHP Forum
- Previous Thread: Error handling
- Next Thread: calendor control
Views: 1372 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube






