I have this now:
<form action="add.php" method="post">
I also tried method="get"  -- i can see the variables
in the url too. I have double checked spelling etc.

This line prints nothing - not even a space I think:
printf ("These values were inserted into the database
- %s %s", $firstname, $surname);


--- Joe Stump <[EMAIL PROTECTED]> wrote:
> Well if you aren't posting to your add.php page (ie
> method="post" 
> action="add.php") then you need to pass them via the
> add.php?var=foo&varb=bar 
> method. 
> 
> --Joe
> 
> 
> On Wed, Jan 10, 2001 at 12:02:54PM -0800, jeff
> fitzmyers wrote:
> > I am working on the nice tutorial at
> >
> http://designmagick.50megs.com/postgresql-tutorial/ 
> > 
> > I have my test.php and add.php pages created and
> just
> > can't seem to pass variables to the add.php page
> > -- not even simple things like $user!
> > 
> > phpinfo() shows HTTP_POST_VARS["firstname"] = Jeff
> so
> > php knows about the vaariables but
> > doesn't seem to tell the new page.
> > 
> > What am I doing wrong??
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Photos - Share your holiday photos online!
> > http://photos.yahoo.com/
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 
> ---
> Joe Stump
> PHP Programmer
> www.Care2.com
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to