[thelist] php: problem with variable

Chris Blessing webguy at mail.rit.edu
Wed Jan 23 12:36:16 CST 2002


Instead of checking for the existance of $submit, why not check to see if
the value is there?

if($submit != ""){
	// process form
	...
}else{
	// display form
	...
}

Regarding php.ini changes, I believe a PWS restart is all that is necessary.
It should reload everything.

Chris Blessing
webguy at mail.rit.edu
http://www.330i.net

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Michael Galvin
> Sent: Wednesday, January 23, 2002 1:35 PM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] php: problem with variable
>
>
> Basically, the php file is checking the 'existance' of $submit.  If it
> doesn't exist, it assumes that the user hasn't 'submitted'
> anything yet, and
> shows the form.  If it does, then it does the actual processing
> of the form.

> BTW, quick question: if I make a change to the .ini file in
> Win98/PWS, can I
> just restart PWS, or is there more I have to do?
>
> Michael
> http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list