Click to See Complete Forum and Search --> : Why can't I combine two php vars?


LocalHero
10-23-2005, 12:34 AM
I don't know why this is giving me troubles but I have textboxes (textidea#) They increase by 1 for each box. I need to get $textidea and $ixx to combine to be $textidea# but I keep getting blank pages or no output where it goes.

echo "<tr><td>#{$ixx}<b> Product</b><br> {$textidea}{$ixx}</td></tr>"

This should look like this

#1 Product
echo($textidea1)

I'm probably doing something dumb. Any ideas on how to merge the two vars?

Scleppel
10-23-2005, 07:39 AM
Do you just want this?

echo "<tr><td>#$ixx<b> Product</b><br> ${textidea.$ixx}</td></tr>";

LocalHero
10-23-2005, 10:43 AM
That was it! Thanks.