Hi, RedHat 7.2 RPM with PostgreSQL 7.1.x and PHP 4.0.6
Page 111 of "PHP and PostgreSQL", this form displays in Mozilla. The submit button is expected to run a script called reaction.php but it opens the script and displays the code. The response is the same with or without variable input. I changed the script file to executable: no effect. I can run 'reaction.php' from the shell and it works. What is the problem here? --------------------------------- form ----------------------------------------------------------------- <html> <body> A Simple Form <br><br> <form action="reaction.php" method="post"> <input type="text" name="field_1" size="10"><br><br> <input type="submit" name="submitbutton"> </form> </body> </html> ------------- Reaction.php ------------------------------------------------------------------action.php <?php if ($field_1) { echo "field_1: $field_1"; } else { echo "nothing has been passed to this script"; } ?> ---------------------- run as stand alone php file ----------------------------------------------------------------- bash-2.05$ php < reaction.php X-Powered-By: PHP/4.0.6 Content-type: text/html nothing has been passed to this script ---------------------------------------------------------------- In: /etc/httpd/conf/httpd.conf AddType application/x-httpd-php .php (appears as above plus an entry for each of php2,3,&4) LoadModule php4_module modules/libphp4.so LoadModule php_module modules/mod_php.so These were all uncommented in the RPM installation of RedHat 7.2. Somehow PHP is partially working... Any suggestions? I can create forms in php and tables in PostgreSQL but according to phpinfo(), php is not configured for PostfreSQL. If I survive this problem, that one is on the horizon. Does anyone have a generic list of things to do after an RPM installation of RedHat Linux 7.2 in order to use PHP with PostgreSQL? Thanks, Warren _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php