pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Warren Massengill <warrenmassengill@hotmail.com>
To: pgsql-php@postgresql.org
Subject: Use of Serial type
Date: Wed, 18 Sep 2002 18:17:15 -0500
Message-ID: <F22ksiWt2H7ufgzqbP600015734@hotmail.com> (raw)

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




view thread (6+ messages)  latest in thread

Message-ID: <F22ksiWt2H7ufgzqbP600015734@hotmail.com>
Permalink:  ../F22ksiWt2H7ufgzqbP600015734@hotmail.com/
Also on:    postgresql.org/message-id/F22ksiWt2H7ufgzqbP600015734@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: warrenmassengill@hotmail.com
  Subject: Re: Use of Serial type
  In-Reply-To: <F22ksiWt2H7ufgzqbP600015734@hotmail.com>
  References: <F22ksiWt2H7ufgzqbP600015734@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox