How put "text" directly next to a variable in a URL?

Thread Solved

Join Date: Dec 2007
Posts: 2
Reputation: miguel40 is an unknown quantity at this point 
Solved Threads: 0
miguel40 miguel40 is offline Offline
Newbie Poster

How put "text" directly next to a variable in a URL?

 
0
  #1
Dec 10th, 2007
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");

}
Last edited by miguel40; Dec 10th, 2007 at 2:20 am.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: How put "text" directly next to a variable in a URL?

 
0
  #2
Dec 10th, 2007
header("Location: http://www.online.com/bra_school_bra_fit_calculator_test.php?size=".$bandodd."AA");
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 2
Reputation: miguel40 is an unknown quantity at this point 
Solved Threads: 0
miguel40 miguel40 is offline Offline
Newbie Poster

Re: How put "text" directly next to a variable in a URL?

 
0
  #3
Dec 10th, 2007
Awesome!!! Thank you so much!!!
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: How put "text" directly next to a variable in a URL?

 
0
  #4
Dec 10th, 2007
you are welcome.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum


Views: 1372 | Replies: 3
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC