Ever since PHP 4.2.0 (in PHP v4.1.0 it was not default yet) you need to
access the value in variable $textbox via $_POST variable:
printf("<BR>hello %s!",$_POST['textbox']);
--
Maxim Maletsky
[EMAIL PROTECTED]
www.PHPBeginner.com // PHP for Beginners
www.maxim.cx // my Home
// my Wish List: ( Get me something! )
http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3
Mukta Telang <[EMAIL PROTECTED]> wrote... :
> I have written followong code in hello.html:
>
> <HTML>
> <HEAD>
> </HEAD>
> <BODY>
> <FORM ACTION=hello.php METHOD=POST>
> <B>enter your name:</B>
> <INPUT TYPE=TEXTAREA NAME=textbox>
> <INPUT TYPE=SUBMIT>
> </FORM>
> </BODY>
> </HTML>
>
> and following in hello.php:
>
> <HTML>
> <HEAD>
> </HEAD>
> <BODY>
> <?php
> printf("<BR>hello %s!",$textbox);
> ?>
> </BODY>
> </HTML>
>
>
> This script works fine with php in redhat 7.2 system
> but does not work in solaris 7 !
>
> I have done the php installation...
>
> apache version: 2.0.40
> php version: 4.2.2
>
> What are the chances that the problem is with the php-installation?
> ( I had to copy code from apache2filter directory of pre 4.3 version of
> php to remove errors during make )
>
> I tried using echo($_GET['$textbox']) instead of printf statement in
> hello.php..
>
>
> What could be the problem??
> Please help!!
> mukta
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php