Hello Christensen, Thursday, December 5, 2002, 8:32:00 PM, you textually orated:
CT> OK, CT> I know the transition form apache 1.x to 2 isn't supposed to be easy... CT> but, here's the deal. CT> I am setting up a new website, apache 2, redhat 8, php 4.2.2 (default redhat CT> 8 install). CT> I can't get html forms to pass their variables successfully to my php CT> scripts. CT> I create a simple form ie CT> <form name="test" method="post" action="test.php"> CT> <input type="text" name="firstname"> CT> <input type=submit name="submit"> CT> and then my php script: CT> <? CT> print $firstname; CT> print "firstname"; ?>> CT> the results of this are that it prints "firstname" (without the quotes) but CT> it never prints the string supplied in the form. CT> suggestions? PHP 4.2.x and up are all installed with register_globals = off in the php.ini file. Some people believe that this is a security improvement. I'll leave that to your own discretion. You have two choices... 1. Use $_POST[firstname] (or it's friends $_GET, $_COOKIE, etc.) 2. Turn on register_globals in your php.ini file. Have fun, -- _________________________________________________________________ Brian Ashe CTO [EMAIL PROTECTED] Dee-Web Software Services, LLC. http://www.dee-web.com/ ----------------------------------------------------------------- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list