-1

I need to encode some data from an SQL database into a URL, but I cannot work out how to do it.

I have tried putting urlencode() in different places and storing them in variables.

Print "<td><a href =" .$_SERVER['PHP_SELF']. "?id=" . $info['id'] ." &name=" . $info['Name'] . "&author=" . $info['Author'] ."&subject=" .
$info['Subject'] . "&series=" . @$info['Series'] . "&mode=edit>Edit</a></td>";

1 Answers1

0

Embed PHP Tags properly in a HTML Hyperlink , followed by you Values example

?id=&name=">

Aditya
  • 1
  • 3