I have a T_STRING error on line 101

line 99: echo("
line 100: <form name=name=add_new action=http://www.nwaoftexas.com/bm_pro/edit_prop.php?prop_id=$var enctype = \"multipart/form-data\" method=post><table id="second" width="600" align="center">
line 101: <tbody>
line 102: <tr>
line 103: <td align="center"><img alt="" src="logosoft2.jpg" /> </td></tr>
line 104: <tr>
line 105: <td class="heading" align="center"><a href="/bm_pro/index.php">Home</a> | <a href="/bm_pro/brochure.php?&amp;prop_id=$var">Create Brochure</a> | <a href="/bm_pro/printsales.php?prop_id=$var">Print Sales Contract</a> | <a href="/bm_pro/printaq.php?prop_id=$var">Print Aquisition Contract</a> | <a href="/bm_pro/del_prop.php?prop_id=$var">Delete Property</a> </td></tr></tbody></table>
line 106: <table id="second" width="600" align="center">

.
.
.
.
.
; // terminates echo

I have a feeling that it's not in line 101 as it says. But the only thing I touched was line 105, but then switched it back because there was an error. And I still have the same error after I revert to the old code. I may have touched something in the code that I wasn't aware of.

Maybe you guys can see what I'm not seeing. I really appreciate your help.

Recommended Answers

All 3 Replies

You need to escape all of your double quotes with the backslash character. There are a few on line 100 that are not escaped. This is causing the error on line 101. It might pay to double-check your other lines too...

You need to escape all of your double quotes with the backslash character. There are a few on line 100 that are not escaped. This is causing the error on line 101. It might pay to double-check your other lines too...

I'm sorry, what do you mean by "escape" all of the double quotes with the backslash character? Do you mean replace? Sorry, just trying to understand.

I'm sorry, what do you mean by "escape" all of the double quotes with the backslash character? Do you mean replace? Sorry, just trying to understand.

see this?

enctype = \"multipart/form-data\"

just like that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.