TinyPortal

Development => Block Codes => Topic started by: propyl on April 20, 2013, 01:57:31 PM

Title: submit form to db
Post by: propyl on April 20, 2013, 01:57:31 PM
Hi guys, im no php programmer at all but I can stumble along through it ok most times.

I have what's hopefully a very simple noob question.

I basically what to put a form with a text box and a couple of option boxes in a php block and submit it to a table in my main smf database. I can read and write from the database ok without problems i am just not sure about dealing with the form in a php block? I was looking at the generic application block code but its so loaded with options that its been hard for me to digest the basic simple elements of the form submission.  I am using SMF 2 and TP 1 for what its worth.


Title: Re: submit form to db
Post by: propyl on April 20, 2013, 03:11:31 PM
Scratch that, got it working!

:D

This guy had enough of what i needed to get moving.

http://www.tinyportal.net/index.php?topic=12905.msg107259#msg107259

Title: Re: submit form to db
Post by: IchBin on April 21, 2013, 12:32:48 AM
Awesome. Glad you found that. It's a pretty basic concept once you see it.