RE: [PHP] Quick Question re: Input

2004-11-22 Thread Jay Blanchard
[snip]

[/snip]

Unfortunately you cannot do it like this, you either have to reload the
page or send the processing to another namespace. But you can do
different buttons...





In processStuff.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Quick Question re: Input

2004-11-22 Thread Monique Verrier
Hi!

This is what I want to do:

When the user presses the submit button, run a function along the lines of:



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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php