|  | Posted by j0sh on 01/02/06 10:01 
Howard wrote:> Hello everyone, and Happy New Year,
 >
 > I'm a beginner to PHP, my host (Yahoo) now provides the abilty to use
 > PHP/MySQL, so I started reading some tutorials to try to learn the
 > basics.
 >
 > I have a question regarding a form's action attribute to send the user
 > submitted data to $_SERVER[PHP_SELF] (the same page).  The problem for
 > me, is that is this doesn't give the complete URL (the
 > http://www.myhost.com part).  It only gives the /filename.php part.
 > Therefore, when I enter some info into the text field (on the page with
 > the form) and click submit, I get "The page cannot be displayed".  How
 > can this be resolved?
 
 use $_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']
 
 --
 http://josh.pixael.com
  Navigation: [Reply to this message] |