![]() |
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software. |
|
|
|
#1
|
||||
|
||||
|
This HOW TO guide is now on our main website.
__________________
Russell Robinson (Author of Tectite FormMail and FormMailDecoder) Root Software (http://www.tectite.com/) Last edited by russellr; 25-Aug-2010 at 07:35 AM. Reason: Moved to main website. |
|
#2
|
|||
|
|||
|
can we get radio buttons information through an html form template... your informations dont cover this issue?
May be a silly one and would be cool if we can. Mike |
|
#3
|
||||
|
||||
|
Hi,
You can display the selected value of a set of radio buttons, but you can't show radio buttons in the template. For example, with this form: Code:
What do you like? Noise: <input type="radio" name="likes" value="noise" /> Silence: <input type="radio" name="likes" value="silence" /> Code:
Person likes: $likes Code:
Person likes: noise Code:
Person likes: silence
__________________
Russell Robinson (Author of Tectite FormMail and FormMailDecoder) Root Software (http://www.tectite.com/) |
|
#4
|
|||
|
|||
|
Hi Russel
Thanks for the response I have set the template up but when I submit I get the following error report An error occurred while processing the form. Please contact us directly since this form is not working. We apologize for any inconvenience this error may have caused. I have an attach feature set up on my form is this affecting the submission of my form results by html template? Mike |
|
#5
|
||||
|
||||
|
Hi,
You'll need to set DEF_ALERT in FormMail so that you get an alert message sent to you. The alert message will tell us what the problem is.
__________________
Russell Robinson (Author of Tectite FormMail and FormMailDecoder) Root Software (http://www.tectite.com/) |
|
#6
|
|||
|
|||
|
Russell
You are the man! This script is awesome and the form works like a treat!! Now to have some fun! Mike |
|
#7
|
|||
|
|||
|
Hi, i think that this form is fantastic, i got it working, received the plain results no problem, and then went to set up a HTML email for the results. Thats where I ran into some problems...I created a templates folder under the root, called it fmtemplates, and then created a html file underneath for the results to be passed. Also, I edited the formmail.php in notepad and changed $templatedir to what I thought would be the correct directory - $TEMPLATEDIR = "../fmtemplates/"; when I filled out the form I got The following error occurred in FormMail :
mail_failed ********** Error=Failed to send email. So i removed that and tested with just the default, no html email results or anything, and the message came through again no problem. So i decided to try it with the $TEMPLATEURL to see if maybe i pointed it that way would help. $TEMPLATEURL = "http://www.aif.com/fmtemplates/test1.htm" Ran the form and this time i received 2 emails...1 with the same previous message, and a second email with The following error occurred in FormMail : Failed to open template "http://www.aif.com/fmtemplates/test1.htm/test1.htm?USER_AGENT=Mozilla%2F4.0+%28compatible%3B+MSIE+6.0%3B+Windows+NT+5.1%3B+SV1%3B+.NET+CLR+1.1.4322%29" : failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found I have published that directory and you can actually get to the page at http://www.aif.com/fmtemplates/test1.htm/test1.htm. I am not sure what i should edit in formmail.php, or if the template file is set up correctly. But if I set the formmail options for templatedir and templateurl back to blank i recieve the regular email no problems. Any help would be most greatly appreciated. Thank you very much in advance. |
|
#8
|
||||
|
||||
|
Hi,
It's better to use $TEMPLATEDIR for simple static templates because it's faster. You can find your document root by using a test alert: http://www.aif.com/.../formmail.php?testalert=1 The alert message will show you the correct directory path. Having said that, you've actually almost got it working with $TEMPLATEURL. $TEMPLATEURL shouldn't have the template name, just the directory to the template. You have: PHP Code:
PHP Code:
__________________
Russell Robinson (Author of Tectite FormMail and FormMailDecoder) Root Software (http://www.tectite.com/) |
|
#9
|
|||
|
|||
|
New problem on a new form, and I am stuck
. I set up a form on a secure site and wanted to use a html output in the email. So I set it up and thought everything was ok, filled out the form, and the errors came. Now I am totally stuck. The form page is: https://secure.aif.com/kylorder06.htm Here is the email message. The following error occurred in FormMail : Failed to open template "https://secure.aif.com/fmtemplates//kylsubmission.htm?USER_AGENT=Mozilla%2F4.0+%28compatible%3B+MSIE+6.0%3B+Windows+NT+5.1%3B+SV1%3B+.NET+CLR+1.1.4322%29" : failed to open stream: Invalid argument You can get to the output page no problem, I am just confused by the invalid argument part. Any help would be greatly appreciated. Thanks again. |
|
#10
|
|||
|
|||
|
About last post, still same problem, but it was on a live form so i adjusted the code to make it use no templates so that ordinary people could do their submissions. I moves the code to another page though:
https://secure.aif.com/kyltest.htm If you could take a look at it when you have a chance it would be most excellent. Also, i took out the templatesDIR configuration and it went through...should the form have a problem with a secure site? I would think not but I have no idea. Anyhow, thanks in advance. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sample HTML Form Using FormMail | russellr | FormMail | 1 | 21-Mar-2007 07:49 AM |
| send an email in HTML | michecosta | FormMail Subscription Support | 3 | 25-May-2004 09:18 PM |
| Submitted form output onto HTML page? | LKimber | FormMail Subscription Support | 2 | 13-Apr-2004 11:39 AM |
| not seeing form data | brownie | FormMail Subscription Support | 6 | 19-Jan-2004 02:37 AM |
| Help trying to set up a form to email and send info to file | rridsdale | FormMail Subscription Support | 1 | 14-Jan-2004 03:38 AM |