[PHP] Re: Text from web form

2002-09-11 Thread nicos

Hi,

If you have register global off on your php.ini, you should do:
$name = $_POST['name'];
$message = $_POST['message'];
at the top of your script to enable the variables.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

"Rick King" <[EMAIL PROTECTED]> a écrit dans le message de
news: [EMAIL PROTECTED]
> Apache: 1.3.26
> PHP: 4.2.3
> OS: HPUX-11
>
> Hello PHP Guru's!
>
> After successfully installing PHP and viewing the phpinfo page, I decided
to
> create a simple web-form. Just a basic "Name" "Message" web-form, when the
> form is complete it is emailed to an account. Everything works, except I
> don't see the filled in contents in the email message. I don't see the
what
> the person filled out. But I see "Name:" ane "Message:"
>
> Any ideas?
>
> Here's my config line for installing PHP:
> CC=gcc ./configure --prefix=/opt/php \
> --without-mysql \   (didn't have MySQL installed)
> --with-apxs=/opt/apache/bin/apxs
>
> Here's my config line for installing Apache:
> CC=gcc ./configure --prefix=/opt/apache \
> --enable-module=most \
> --enable-shared=max
>
> Any help would be greatly appreciated!
>
> Rick
>
>



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




[PHP] Re: Text from web form

2002-09-11 Thread Jome

> Hello PHP Guru's!
>
> After successfully installing PHP and viewing the phpinfo page, I decided
to
> create a simple web-form. Just a basic "Name" "Message" web-form, when the
> form is complete it is emailed to an account. Everything works, except I
> don't see the filled in contents in the email message. I don't see the
what
> the person filled out. But I see "Name:" ane "Message:"
>
> Any ideas?

Could this be an register_globals issue?

Read on
http://www.php.net/manual/en/language.variables.predefined.php#language.vari
ables.superglobals - it may resolve your problem.

  Jome



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