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

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]


Удаленная работа для программистов  •  Как заработать на 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

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