php - URL perfectly working on localhost, not working on web server -
i've tried other solutions posted here, nothing worked..
i have following code on .htaccess doc.
rewriteengine on rewriterule ^registrationform/([a-za-z0-9_-]+)$ registrationform.php?code=$1 rewriterule ^registrationform/([a-za-z0-9_-]+)/$ registrationform.php?code=$1
i receive email , clicking on url access registrationform.php
i start registrationform.php that:
<?php if (!empty($_get['code']) && isset($_get['code'])) { $code=$_get['code'];
do knows why works on localhost not on remote server?
the problem not how got code running in acquiring code. problem have occurred here.
if (!empty($_get['code']) && isset($_get['code'])) { $code=$_get['code'];
the line of code above not able code
part part of querystring. querystring has been generated doesn't have word code
in it. may want read this article.
Comments
Post a Comment