Quick Question re: Input

From: Date: Mon, 22 Nov 2004 22:26:04 +0000
Subject: Quick Question re: Input
Groups: php.general 
Request: Send a blank email to php-general+get-202703@lists.php.net to get a copy of this message
Hi! This is what I want to do: When the user presses the submit button, run a function along the lines of: <form method="post" name="form1" action="<?php echo addrecord(); ?> "> The addrecord function basically runs an SQL insert. This seems as though it should be uncomplicated. All the code that I look at has the page calling itself again and running code that wasn't used the first time based on some switch. Does anyone know if there is some other kind of solution? This seems so messy to me. I would prefer to keep the function in the page. I am learning php, so please be kind! Thanks for any and all advice! Monique.

« previous php.general (#202703) next »