View Single Post
  #1 (permalink)  
Old 11-01-09, 06:39 AM
karthikanov24 karthikanov24 is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
<a href > inside php

hi

Code:
echo "<a href=\" " . $_SERVER['PHPSELF'] . "?c=$catId&p=$pd_id" . "\">link</a>";
the value of $_SERVER['PHP_SELF'] is /plaincart/index.php in my application

There are totally 8 double quotes present in the above code.

The second and seventh double quotes are similar to "abc.php" in <a href="abc.php"> {an example}

But why third and sixth double quotes and concatination (.) which is present before and after
$_SERVER['PHPSELF'] . "?c=$catId&p=$pd_id"
is used??

thanks
karthikanov24
Reply With Quote