TinyPortal

General => Chit chat => Topic started by: gerrymo on February 04, 2006, 04:17:12 PM

Title: Some Form Help (non TP).
Post by: gerrymo on February 04, 2006, 04:17:12 PM
I have a form that was created in Frontpage. I then use a form builder to make it all work (creates a .php form). They are taking up to 24 hours to get through to my inbox. How would I get the html version to work? This isnt something I know much about, but I do know Frontpage forms a notorius for not aorking as they should. I want the form sent to me by e-mail, then a thanks page (html) displayed.


The code from the form is below.


        <form method="POST" action="--WEBBOT-SELF--">
          <!--webbot bot="SaveResults"
          U-File="fpweb:///_private/form_results.txt" S-Format="TEXT/CSV"
          S-Label-Fields="TRUE" -->


Any help very welcome.
Title: Re: Some Form Help (non TP).
Post by: Paulie on February 04, 2006, 04:43:11 PM
I know its still php, but fantastico have this http://phpformgen.sourceforge.net/ or of course you can get it here ;)
Title: Re: Some Form Help (non TP).
Post by: gerrymo on February 04, 2006, 04:54:46 PM
Thanks. I tried that out a while back, and its pretty poor.
Title: Re: Some Form Help (non TP).
Post by: Paulie on February 05, 2006, 10:52:40 AM
Ahhh ok. I assume you googled for a html form generator?
Title: Re: Some Form Help (non TP).
Post by: gerrymo on February 05, 2006, 12:15:33 PM
I've tried a few, but they are very basic. The forms I use are quite big, and designed to suitthe site theme. This is why I wanted too try to use my own one.
Title: Re: Some Form Help (non TP).
Post by: Rasyr on February 05, 2006, 03:34:20 PM
The Subs-Post.php file in the Sources directory has several email functions that are used to send emails to users.

Perhaps you could adapt something along those lines to create an email form that send the results to you through email.

Create an article that has the form. Then create a PHP Article that is called on the submission of the form. In that PHP Article, call the elements of the form and format the information, and then call the function to email the results to you. The visible portion of this page would then be the "Thank You" page that you wanted to display.

I have not tried doing anything like this, but I think that it should work....

Title: Re: Some Form Help (non TP).
Post by: Eternity on February 07, 2006, 06:57:43 PM
Quote from: gerrymo on February 05, 2006, 12:15:33 PM
I've tried a few, but they are very basic. The forms I use are quite big, and designed to suitthe site theme. This is why I wanted too try to use my own one.

When you use html forms you have to use MIME or something similar, if you have control panel you will usually have MIME already set up and then you set up a special file which you will use as a posting file. You then action the form to use the post html file and it uses MIME or a similar package to deliver the email to your inbox of the completed form. 

You get the form results in seconds of submission.