[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tools and Techniques
I've done this in PHP many times, and if you would like some code
samples I would be more than happy to give them to you. The original
submit form can be html, and the page after the form can be a php form
that connects to the database. You simply use $_REQUEST['FormItemName']
as your variable on the next page. (Each field of the form will have a
different name, and therefore a different key for the array.)
For the user to edit the form, I just have a page that uses a similar
form to what the user entered originally, except the database connection
adds the value attribute so the fields are 'pre-populated' this time.
When the user submits the form, an update query is generated.
I dont know much about CGI/PERL though, but if you need help with a PHP
solution, let me know.
Best Regards,
Ricky Bryce
On Fri, 2004-12-10 at 22:30 -0600, Tim McDonough wrote:
> On Fri, 10 Dec 2004 17:08:47 -0600, Ken Keefe wrote:
> > I have recently done this. Not to say that I am a know-it-all by
> > any means, but I think I have been where you want to go. Here is
> > what I did to get my feet drenched in web development...
> ...
> > Something that you want to be very clear that you understand is the
> > difference between client-side dynamic content (DHTML, Javascript)
> > and server-side dynamic content (PHP, Perl, Python, ASP, JSP, the
> > list goes on...).
>
> Thanks to everyone who has replied so far. Lots of good suggestions to
> study.
>
> A bit of clarification...
>
> I want to do things on the server so the user only has to have a
> browser be it IE, Firefox, Opera, etc. No special plug-ins, downloaded
> modules, javascript enabled in the browser, etc.
>
> I have some basic HTML experience and some experience with PHP but
> nothing fancy in either case, just enough to grab some data from a
> MySQL database and present it on a web page using MySQL, Apache, and
> PHP.
>
> I guess having read the comments so far the part I'm missing is a good
> reference on using HTML/PHP to do forms, etc. The knowledge I'm
> lacking is how to display a nicely formatted form, collect and
> validate user input, and return results back to the form for editing
> or viewing.
>
> Tim
>
>
>
> -
> To unsubscribe, send email to majordomo@luci.org with
> "unsubscribe luci-discuss" in the body.
>
>
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.