You are here: Re: Simple Form Question « All PHP « IT news, forums, messages
Re: Simple Form Question

Posted by Balazs Wellisch on 01/02/06 05:47

> 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?
>

$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'] or
$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']

See http://us2.php.net/reserved.variables for what else is available.

Balazs

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация