Yes .. you  can do it like this.
Have two functions 


In the generateForm function use a hidden form field called say "action"
with a value say "process"

Then put a code like this.

if ($action == "process")  {
else {


At 12:08 PM 2/4/01 +0000, Sridhar Ranganathan wrote:
>Hi Netlanders
>Traditionally, we have two files in our apps. A HTML page that has a form 
>and a PHP file that processes the form info. I have a web-based front end 
>that is used to added data to a table. Can I do this with one PHP file 
>Sridhar Ranganathan
>Get Your Private, Free E-mail from MSN Hotmail at
>PHP Database Mailing List (
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to