[PHP-INSTALL] Beginner problem: Variables not parsing.
Hi all My setup is thus: Installed on WinXP (SP1) Web-Server SuiteVersion 1.14 standard, auto-setup which includes the following: PHP 4.3.10 Apache 2 MySQL PhpMyAdmin and Perl (But I dont intend to use it just yet, thats a problem for another day lol) I believe PHP is setup as a module in Apache as opposed to a cgi-bin install. Well thats what it says anyways. Setup went well and all elements appeared to work fine, until. Now excuse the rudimentary nature of the scripts. The code samples that follow were taken from Professional PHP Programming by Wrox Press. ISBN 1-861002-96-3 It was written when PHP4 was just starting, so some conventions are changed. (see comments below) See http://www.wrox.com for more info. Comments are for my benefit, but I left them in to make it simpler for all. -- Phop's Bicycle Shop Job Application Are you looking for an exciting career in the world of cyclery? Look no further! Please enter your name here: - Welcome, ! "> Show Name - Welcome, ! -- My problem is thus: In name.php, it is supposed to be passed the name/value pair from processform.php This does not happen, although it works from jobapp.html to processform.php This has to be a simple problem as the initial name/value pair worked correctly. Can anyone please tell me whats going on? Any further info/configuration files needed, please just say and ill supply it. Regards Allan
Re: [PHP-INSTALL] Beginner problem: Variables not parsing.
in jobapp.html, you write: but not "processform.php". On Sun, 20 Mar 2005 21:00:50 +1100, Allan Cooper <[EMAIL PROTECTED]> wrote: > Hi all > > My setup is thus: > > Installed on WinXP (SP1) Web-Server SuiteVersion 1.14 standard, > auto-setup which includes the following: > PHP 4.3.10 > Apache 2 > MySQL > PhpMyAdmin > and Perl (But I dont intend to use it just yet, thats a problem for > another day lol) > > I believe PHP is setup as a module in Apache as opposed to a cgi-bin > install. Well thats what it says anyways. > > Setup went well and all elements appeared to work fine, until. > Now excuse the rudimentary nature of the scripts. > The code samples that follow were taken from Professional PHP > Programming by Wrox Press. ISBN 1-861002-96-3 > It was written when PHP4 was just starting, so some conventions are > changed. (see comments below) > See http://www.wrox.com for more info. > Comments are for my benefit, but I left them in to make it simpler for all. > -- > > > > > >Phop's Bicycle Shop Job Application >Are you looking for an exciting career in the world of > cyclery? >Look no further! > >Please enter your name here: > > > > > > > - > > > > >Welcome, ! > >"> Show Name > > > - > > > > >Welcome, ! > > > > -- > My problem is thus: > > In name.php, it is supposed to be passed the name/value pair from > processform.php > This does not happen, although it works from jobapp.html to processform.php > This has to be a simple problem as the initial name/value pair worked > correctly. > Can anyone please tell me whats going on? > > Any further info/configuration files needed, please just say and ill > supply it. > > Regards > Allan > -- Sincerely, Forest Liu(åäè)
Re: [PHP-INSTALL] Beginner problem: Variables not parsing.
The way you are passing variables from processform.php to name.php (name.php?applicant=applicantname), name.php will recieve the variable as $_GET['applicant'], not $_POST['applicant']. For more information, see http://us3.php.net/manual/en/language.variables.predefined.php Allan Cooper wrote: Hi all My setup is thus: Installed on WinXP (SP1) Web-Server SuiteVersion 1.14 standard, auto-setup which includes the following: PHP 4.3.10 Apache 2 MySQL PhpMyAdmin and Perl (But I dont intend to use it just yet, thats a problem for another day lol) I believe PHP is setup as a module in Apache as opposed to a cgi-bin install. Well thats what it says anyways. Setup went well and all elements appeared to work fine, until. Now excuse the rudimentary nature of the scripts. The code samples that follow were taken from Professional PHP Programming by Wrox Press. ISBN 1-861002-96-3 It was written when PHP4 was just starting, so some conventions are changed. (see comments below) See http://www.wrox.com for more info. Comments are for my benefit, but I left them in to make it simpler for all. -- Phop's Bicycle Shop Job Application Are you looking for an exciting career in the world of cyclery? Look no further! Please enter your name here: - Welcome, ! "> Show Name - Welcome, ! -- My problem is thus: In name.php, it is supposed to be passed the name/value pair from processform.php This does not happen, although it works from jobapp.html to processform.php This has to be a simple problem as the initial name/value pair worked correctly. Can anyone please tell me whats going on? Any further info/configuration files needed, please just say and ill supply it. Regards Allan