PDA

View Full Version : Problem With Links


sam_webb00
06-12-2007, 10:24 PM
This is the code i am using which is fine but i want the contact form part to link to another page lets call it contactfrm.html,
echo "<b>$BName <br><br>Reference:</b> $REF<br><br><b>Asking Price:</b> $Aprice<br><br><b>Sales Revenue:</b> $SRev<br><br><b>Profit: </b>$Profit<br><br><b>location: </b>$Loc<br><br><b>Relocatable:</b> $Relocatable<br><br><b>Business Description<br><br></b> $Desc<br><br>If you are interested , please fill out the contact form, or contact us. <hr><br>";

So i do it like this but for some reason it throws up and error "Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /homepages/34/d93471519/htdocs/marketfinder/listings.php on line 100" any ideas anyone?


echo "<b>$BName <br><br>Reference:</b> $REF<br><br><b>Asking Price:</b> $Aprice<br><br><b>Sales Revenue:</b> $SRev<br><br><b>Profit: </b>$Profit<br><br><b>location: </b>$Loc<br><br><b>Relocatable:</b> $Relocatable<br><br><b>Business Description<br><br></b> $Desc<br><br>If you are interested , please fill out the <a href="contactform.html">contact form</a>, or contact us. <hr><br>";

kbluhm
06-12-2007, 10:27 PM
You're in double-quotes, so you have to comment the double-quotes around 'contactform.html':

echo "<b>$BName <br><br>Reference:</b> $REF<br><br><b>Asking Price:</b> $Aprice<br><br><b>Sales Revenue:</b> $SRev<br><br><b>Profit: </b>$Profit<br><br><b>location: </b>$Loc<br><br><b>Relocatable:</b> $Relocatable<br><br><b>Business Description<br><br></b> $Desc<br><br>If you are interested , please fill out the <a href=\"contactform.html\">contact form</a>, or contact us. <hr><br>";