I had my site up and running no problem. I had it on one of my hosting accounts and had the domain name forward to the folder the site was in. Well I decided to just get hosting for the site so i could enjoy some more options. Well now all my forms that had
HTML Code:
<form name="whatever" method="post" actions="<?php echo $_SERVER['PHP_SELF']; ?>">
as the action now do not work correctly. Before they directed to them selves perfectly. such as www.test.com/page.php would goto www.test.com/page.php, but now it goes to just page.php.
I know I can add in the $_SERVER['HTTP_HOST'] to make it work but why is it doing this!?!?
Is there an easier fix?
|