How to use urlencode function in php

How to use urlencode function in php


UrlEncodeFunction.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>How to use urlencode function in php</title>
</head>

<body>
    <h2 style="color:SeaGreen; font-style:italic">php function example: How to use urlencode function</h2>
    <hr width="550" align="left" color="DarkSeaGreen" />
    <br />
 
    <?php 
  $SoftwareName=urlencode("Adobe Coldfusion");
  echo "<a href='SoftwareDetails.php?SoftwareID=1&Software=$SoftwareName'>";
  echo "<font style='font-size:xx-large;'>Visit Software Details</font>";
  echo "</a>";
  ?>
</body>
</html>


SoftwareDetails.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>How to use urlencode function in php</title>
</head>

<body>
    <h2 style="color:SeaGreen; font-style:italic">php function example: How to use urlencode function</h2>
    <hr width="550" align="left" color="DarkSeaGreen" />
    <br />
 
    <?php 
  $SoftwareName=urlencode("Adobe Coldfusion");
  echo "<a href='SoftwareDetails.php?SoftwareID=1&Software=$SoftwareName'>";
  echo "<font style='font-size:xx-large;'>Visit Software Details</font>";
  echo "</a>";
  ?>
</body>
</html>