Code Comments
Programming Forum and web based access to our favorite programming groups.Xref: newsfeed-west.nntpserver.com alt.comp.lang.php:40159 Is there any other way to reload a page apart from PHP_SELF ? as my server seems to refuse to have anything to do with it at all! I know this is a bit of a newbie question but so far I'm running up against a massive brick wall with a file upload script I am working on. thanks in advance. Wayne...
Post Follow-up to this messageWayne... wrote: > Is there any other way to reload a page apart from PHP_SELF ? as my server > seems to refuse to have anything to do with it at all! > I know this is a bit of a newbie question but so far I'm running up agains t > a massive brick wall with a file upload script I am working on. > thanks in advance. > > Wayne... > > You didn't mention how you're currently going about it, so I'm assuming you're having a form submitting to itself, and the simple answer would be, just leave the form action empty; by default it submits to itself. eg: #test.php <form method=post action=""> <input type="hidden" name="f_hidden" value="voila!"> <input type="submit"> </form> <?php echo $_POST["f_hidden"]; ?> Hope that helps, Anthony.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.