![]() |
|
| |||||||
| Notices |
| mySQL & PHP Discussions, information and help with mySQL and PHP. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| hello i have this code : Code: <?php $city=$_GET['city']; $category=$_GET['category']; echo '<a href="http://www.myweb.com/addform.php?city=$city">'.'['.'Add form'.']'.'</a>'; ?> and in the echo link it suppose to convert the $city from thr top to abcd why it isnt doint that ? any ideas ? thanks |
|
#2
| ||||
| ||||
| Because the $city inside single quotes is interpreted as text. Make it: <?php $city=$_GET['city']; $category=$_GET['category']; echo "<a href=\"http://www.myweb.com/addform.php?city=$city\">".'['.'Add form'.']'.'</a>'; ?>
__________________ Navaldesign Logger Lite: Low Cost, Customizable, multifeatured Login script Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! |