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_WHITESPACE, expecting T_STRING or 
T_VARIABLE or T_NUM_STRING in /local/scratch-1/ww220/Apache1.3/htdocs/test/add2.php on 
line 5

Oy Sat, 1 Jun 2002 16:57:00 +0100
[EMAIL PROTECTED] (Stuart Dallas) wrote:

> On Saturday, June 1, 2002 at 4:51:20 PM, you wrote:
> > 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 in add.php. Anyone give me a hand on this naive question?
> 
> You probably have register_globals turned Off in your php.ini file. If you do
> then you can either turn it on or use the recommended method of accessing
> POSTed variable: $_POST['firstname'].
> 
> -- 
> Stuart
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to