Can someone please look at this for me? I have no brain left.

				
echo ("<input type=\"radio\" name=\"shipping\" value=\"<?php $row['shipper_ID']; ?>\"><?php $row['company_name'] ?><br />");

This gives me this error:
Parse error: syntax error, unexpected T_STRING

If I change the outer quotes to singles, I get the same one. Not sure what to do with the php quotes in the middle of the line.

If I backslash the php quotes, and turn them into double quotes, I get something printed out, but it's row after row of "<?php".

echo ('<input type=\"radio\" name=\"shipping\" value=\"<?php $row[\"shipper_ID\"]; ?>\"><?php $row[\"company_name\"] ?><br />');

I'm out of brain. I'd be so grateful if someone would look at this for me and tell me what I'm doing wrong.

Thanks,

Lee

    Of course it gives u an error why do u open php tag inside php tags?
    This is the right statement:

    echo "<input type=\"radio\" name=\"shipping\" value=\"{$row['shipper_ID']}\">{$row['company_name']}<br />"; 

      Wow! Doh! Works perfectly. Thanks!

      I was turning this into an echo statement after it was an html line. Half asleep.

      I hope something really wonderful happens to you this week.

      Thank you.

        Capoeirista wrote:

        I hope something really wonderful happens to you this week.

        Thank you.
        Very nice of you. I hope the same to you too.

        Marry Christmas!

          Write a Reply...