[PHP] no response from a simple php/mysql code

2003-09-14 Thread Wei Wang
the failure of this code. I'd highly appreciate it if anyone could drop me a line with any advice. Many thanks, Wei Wang http://www.awtrey.com/support/dbeweb/ for more information 1.1 - Oct. 20, 1999 - changed the SQL statement that reads data back out of the database to reve

[PHP] more details about previous email

2003-09-14 Thread Wei Wang
some php tutorials but I think I must've missed a very fundamental point that led to the failure of this code. I'd highly appreciate it if anyone could drop me a line with any advice. Many thanks, Wei Wang http://www.awtrey.com/support/dbeweb/ for more information 1.1 - Oct. 20

[PHP] How are variables called in current php?

2003-09-14 Thread Wei Wang
hi, all, I have a piece of code stuck at the point of "if (($REQUEST_METHOD=='post'))". "var_dump($REQUEST_METHOD);" shows that the variable doesn't exist. Since I grabbed the code from a 2001 update, is there any chance that this is already obsolete? I checked the documentation but didn't find

[PHP] How to comment out chunk of html/php mixed code?

2003-09-15 Thread Wei Wang
hi, This may sound very newbie. But since html comment uses which doesn't comment out the php code. And the php comment /**/ // apparently doesn't work on html. So how do I comment out a chunk of html/php mixed code? Many thanks, Wei Wang

[PHP] simple online form stuck at !isset($first) condition

2003-09-15 Thread Wei Wang
nd be stuck at this one. Any advice would be greatly appreciated. Wei Wang Untitled Document Simple Form Example First Name: Last Name: "; show_form($first,$last); } else { echo "Thank you, $first $last"; } } ?>

Re: [PHP] simple online form stuck at !isset($first) condition

2003-09-15 Thread Wei Wang
AIL PROTECTED]> Sent: Tuesday, September 16, 2003 1:22 AM Subject: Re: [PHP] simple online form stuck at !isset($first) condition > * Thus wrote Wei Wang ([EMAIL PROTECTED]): > > > > > > > > > note the method -- > > > First Name: > &

[PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
I am not sure if this is the right place to ask this naive question. I got a simple form addform.html and add.php look like the following. But everytime I got empty value from firstname and lastname. It seems like the input value in the html page was not passed on to the php variable $firstname i

Re: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
Do you mind telling me where this php.ini is? And I tried the second attempt like this: $query = "INSERT INTO friends (id, firstname, surname) values (nextval('friends_id_seq'), $_POST['firstname'], $_POST['surname'])"; which returns error: Parse error: parse error, unexpected T_ENCAPSED_AND_

Re: Re[2]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
> > Create a php script containing just . That page will tell > you where your php.ini is (or should be). > it told me it's in php/lib, but it's not there. > > Try this... > > $query = "INSERT INTO friends (id, firstname, surname) values > (nextval('friends_id_seq'), ".$_POST['firstname'].", "

Re: Re[2]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
Sorry. When I input "Andras" as firstname in the form, ... On Sat, 1 Jun 2002 17:22:02 +0100 [EMAIL PROTECTED] (Wei Wang) wrote: > > > > Create a php script containing just . That page will tell > > you where your php.ini is (or should be). > > > it

Re: Re[2]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
Is there anything I should do to make the php.ini come into effect? I did put the register_global = On but still got empty values. And my $_POST version is like this: On Sat, 1 Jun 2002 17:08:11 +0100 [EMAIL PROTECTED] (Stuart Dallas) wrote: > On Saturday, June 1, 2002 at 5:00:18 PM, you w

Re: Re[4]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
Sorry. I restared apache and php.ini came into effect. On Sat, 1 Jun 2002 17:29:13 +0100 [EMAIL PROTECTED] (Stuart Dallas) wrote: > On Saturday, June 1, 2002 at 5:22:02 PM, you wrote: > >> Create a php script containing just . That page will tell > >> you where your php.ini is (or should be).

Re: Re[4]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
Changed the query and get this error when input dave as firstname: ERRORERROR: Attribute 'dave' not found add2.php is: addform.php is: First Name : Surname : On Sat, 1 Jun 2002 17:44:57 +0100 [EMAIL PROTECTED] (Stuart Dallas) wrote: > On Saturday, June 1, 2002 at 5:35:03 P