Use of Serial type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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?

Thanks,
Warren

---------------------------------
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
---------------------------------------------------------------

<?php
    if     ($field_1)
    {
           echo "field_1: $field_1";
    }
    else
    {
           echo "nothing has been passed to this script";
    }
?>
----------------------
run as stand alone php
------------------------------------------------------------------
bash-2.05$ php < reaction.php
X-Powered-By: PHP/4.0.6
Content-type: text/html
nothing has been passed to this script
-------------------------------------------------------------------






_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux