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