--- Nicole Lallande <[EMAIL PROTECTED]> wrote: > Tried that
I'm thinking you haven't, but I might be wrong. The HTML you showed us previously was of a form tag. The action attribute of that form tag is where your problem lies. <form action="http://embitec.com/fishcart/email.php?ref=http://embitec.com/fishcart/displayem.php3?cat=5&olimit=0&zid=1&lid=1" method="post"> See? It is still wrong. Remember, you will know when you fix your problem when this form tag looks like this: <form action="http://embitec.com/fishcart/email.php?ref=http%3A%2F%2Fembitec.com%2Ffishcart%2Fdisplayem.php3%3Fcat%3D5%26olimit%3D0%26zid%3D1%26lid%3D1" method="post"> Yours still does not look like this. > <input type="hidden" name="ref" value"<? php echo rawurlencode($ref); ?>"> See, I am guessing that you are doing this on the next page. Meaning, you are URL encoding this: http://embitec.com/fishcart/displayem.php3?cat=5 This is what $_GET["ref"] is going to be if you do not correct your form tag like I am describing. <input type="hidden" name="ref" value="http%3A%2F%2Fembitec.com%2Ffishcart%2Fdisplayem.php3%3Fcat%3D4"> Exactly as I would expect. Focus on fixing your form tag. This other URL encoding you are doing on this hidden form variable is actually unnecessary, because the browser is going to do it again for you. Hope that clears it up for you. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php