[thelist] php: problem with variable

Michael Galvin mpgalvin at eircom.net
Wed Jan 23 12:40:18 CST 2002


Um... wouldn't that just be the same issue?  $submit won't exist in this
file until I press the submit button on the form.  So the first time the
file runs, $submit won't exist, and I'll get undefined variable again.

----- Original Message -----
From: "Chris Blessing" <webguy at mail.rit.edu>
To: <thelist at lists.evolt.org>
Sent: Wednesday, January 23, 2002 6:40 PM
Subject: RE: [thelist] php: problem with variable


| 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 !
|
|
| --
| For unsubscribe and other options, including
| the Tip Harvester and archive of TheList go to:
| http://lists.evolt.org Workers of the Web, evolt !
|
|





More information about the thelist mailing list