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


AddThis Social Bookmark Button
  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:



Tell me what the problem is. Thank you.