ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  PHP Form Handling
Subject:   form redirect doesn't seem to work
Date:   2008-04-18 07:11:49
From:   nutronstar

Your solution of putting the script for

processing the form into the form document

itself. The form tag should be:


<form method="post" action=</p>

"<?php echo $_SERVER['PHP_SELF']; ?>".

This solution does not work because the URL


becomes gibberish:


http://../


%3C?php%20echo%20$_SERVER['PHP_SELF'];%20?%3E.


Tell me what the problem is. Thank you.