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");

}

2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by nav33n
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.