Date: 12/10/99
- Next message: Bob Bowker: "Re: [PHPLIB] cart questions"
- Previous message: sinisa <email protected>: "[PHPLIB] Re: mysql + php3 + apache questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yes, being a PHPLIB newbie, I have yet another question.
I'm trying to learn how to make a self-referencing form to submit to
MySQL when using a subclass of tpl_form to draw the form. I'm having a
difficult time understanding how to use the file that draws the form (in
my case, status_form.php3 which calls StatusForm.inc which uses
StatusForm.ihtml) to also be the action when the submit button is
clicked. How do I separate the logic so my application knows which
function to call, 1) just draw the form? or, 2) submit the form full of
data to MySQL?
This may seem to be a trivial issue, but I cannot find any adequate
documentation on tpl_form for this dilemma. The source doesn't indicate
how to do this either, not that I could find anyway. I could rewrite my
code to directly use oohforms, but I don't really have the time to do
that right now. If I can understand and apply this concept of
separating those two functions, I think I'll be in business (I hope!).
If someone can point me to some docs or, better yet, some examples and
just quickly explain how to do this, I would greatly appreciate it as I
have a deadline this morning (in about two hours! HELP!).
Thanks again,
Bruce Snyder
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Bob Bowker: "Re: [PHPLIB] cart questions"
- Previous message: sinisa <email protected>: "[PHPLIB] Re: mysql + php3 + apache questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

