You are here: Re: html to php variable communication « PHP Language « IT news, forums, messages
Re: html to php variable communication

Posted by bonfils on 07/13/05 18:09

"ft310" <ft310@yahoo.com> wrote:

> The following code is lifted from an html / php page -- all of the error
> checking and other stuff is removed but is there and working in the actual
> page.
> The issue is moving between html variables and php variables.
>
> I understand html variables holdCounty, holdState and County are not
> available to a $_Post function until the Submit function is engaged.
>
> My question: Is there anyway, short of the round trip caused by either
> clicking the Submit button or simulating the same action in javascript, to
> move the html variables into a php context. It is very hard to justify
> this
> methodology as there are all sorts of User impacts. I can not believe this
> is a unique issue and it must have been solved before. I'm a newbee and
> need
> help please as I hate making Users work -- bad form.
>
> $localCounty=$_POST[holdCounty] ;
> $localState=$_POST[holdState] ;
> $localTest=$_POST[County] ;

I'd say you should write these assignments as
$localCounty=$_POST['holdCounty']; etc.
Without quotes the names would appear to refer to constants. I suppose that
is not the case?

--
bonfils
http://kim.bonfils.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

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