TinyPortal

Development => Support => Topic started by: Rebecca on June 04, 2008, 04:56:39 AM

Title: Form Creation
Post by: Rebecca on June 04, 2008, 04:56:39 AM
Hi Everyone,

Just wondering if its possible to create something like the attached using TP?

Cheers!

Title: Re: Form Creation
Post by: JPDeni on June 04, 2008, 05:10:34 AM
Yes. You'll need to use a php block or article and you'll need to be careful when you make your textarea. The closing tag needs to be broken up -- something like


echo '</text' . 'area>';


You can also process the data within the same file, include error processing, and print out the "thank you" page after processing.
Title: Re: Form Creation
Post by: Rebecca on June 04, 2008, 07:56:14 AM
JPDeni thanks for the reply, sounds way over my head im only just starting to get into coding... does anyone know of any easier way?

Cheers.
Title: Re: Form Creation
Post by: JPDeni on June 04, 2008, 01:50:57 PM
Quotedoes anyone know of any easier way?
It's really pretty easy to do. You have to code it anyway, even if it's just html. You can do it in html, but you're likely going to have a problem with your textarea. And then you'd need a separate script to do the processing and another page to display after the processing. With a php file, you can do it all at once.

I think the first thing for you to do is to work out the html for your form and decide what you want to do with the data. Once you get those things figured out, post them here and either I or someone else will be able to help you with the next step.