I am a newbie to php, but thanks to many helpful people, and every tutorial I can find I am learning (fairly) quickly. My php script calls to a mysql database, and returns the rows as an array. The returned values then link to another page submitting this value as a variable. The problem is with Netscape (well, actually it's because of my code)- Netscape will not substitute the ASCII equivalent of a space (%) in the name/value pair. I understand the functions rawurlencode() and rawurldecode(), the problem is with my syntax.....can anyone help? Currently, the row that is printed to the screen is encoded, the variable $svcResult is not. Can anyone help?!?! Please??? I have almost no hair left because of this one....I thought I understood what I was doing....
echo "<table align=center>";
$result = mysql_query("SELECT * FROM pgsmart1 WHERE acctID='$acctID'",$db);
if ($myrow = mysql_fetch_array($result)) {
do {
printf("<tr><td><a href=http://www.phpbuilder.com/board/archive/index.php/\"%s?svcResult=%s\">%s %s, %s</a></tr>\n", $link, $myrow
["svcAdd"], $myrow=rawurlencode($myrow
["svcAdd"]), $myrow["svcCity"], $myrow["svcZip"]);
} while ($myrow = mysql_fetch_array($result));
echo "</table>";
}
The value printed as the link is also the value to be passed to the next page(and rawurldecode()ed)
IE works perfectly
I have searched through all (I think) of the postings regarding this, you all are my last hope!
Thank you.
George
echo "<table align=center>";
$result = mysql_query("SELECT * FROM pgsmart1 WHERE acctID='$acctID'",$db);
if ($myrow = mysql_fetch_array($result)) {
do {
printf("<tr><td><a href=http://www.phpbuilder.com/board/archive/index.php/\"%s?svcResult=%s\">%s %s, %s</a></tr>\n", $link, $myrow
["svcAdd"], $myrow=rawurlencode($myrow
["svcAdd"]), $myrow["svcCity"], $myrow["svcZip"]);
} while ($myrow = mysql_fetch_array($result));
echo "</table>";
}
The value printed as the link is also the value to be passed to the next page(and rawurldecode()ed)
IE works perfectly
I have searched through all (I think) of the postings regarding this, you all are my last hope!
Thank you.
George