I found
$a_safe_fields = array(
"email: ".$SPECIAL_VALUES["email"],
"realname: ".$SPECIAL_VALUES["realname"],
);
In formmail.php
Maybe I need to edit this? Any suggestions on what would work best?
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
I keep getting
email:
realname:
In step one of my multitest. These two field are not required by my form in the first step. How would I stop formmail from putting them in my error page?
The only field i have set in multitest.htm is year.
<form name="MultiSample" method="post" action="formmail.php">
<input type="hidden" name="required" value="year" />
<input type="hidden" name="multi_start" value="1" />
<input type="hidden" name="next_form" value="multitest2.htm" />
<input type="hidden" name="bad_url" value="http://www.mysite.com/fmbadhandler.php" />
<input type="hidden" name="bad_template" value="multierror.htm" />
<input type="hidden" name="this_form" value="http://www.mysite.com/multitest.htm" />
<select name="year">
Thats it nothing else...
Last edited by billy; 11-Dec-2008 at 12:35 PM. Reason: lil more info
I found
$a_safe_fields = array(
"email: ".$SPECIAL_VALUES["email"],
"realname: ".$SPECIAL_VALUES["realname"],
);
In formmail.php
Maybe I need to edit this? Any suggestions on what would work best?
on ur error page?
that doesnt sound right.
can u post ur form's URL so I can see wot u mean
Sure...
mrjunkyard dot com
multitest.htm
This is hard coded in the fm.php seems logical that the problem is there.
$a_safe_fields = array(
"email: ".$SPECIAL_VALUES["email"],
"realname: ".$SPECIAL_VALUES["realname"],
);
I didn't really answer your question. So lets try again.
No its not in the multierror.htm
It is an email that says FormMail script error.
That I receive to my inbox because I have
/* Help: http://www.tectite.com/fmdoc/def_alert.php */
define("DEF_ALERT","xxx@xxx.com");
set in the formmail.php
This is the email that I get for not selecting either of the two values.
To: xxx@xxx.com
From: FormMail@www.xxx.com
The following error occurred in FormMail :
missing_fields
Error=The form required some values that you did not seem to provide.
year
make
email:
realname:
year: ''
make: ''
submit: 'Next >'
Referring page was xxx.com/multitest.htm
User IP address was 69.xxx.xx.xxx
error messages are error messages to help u solve problems
does it really matter that fm is showing email and realname?
they are there coz they are "special fields"
dont go modifying correct working code unless u want to break things
the error ur getting is to help u debug ur forms
u can switch it off with ALERT_ON_USER_ERROR
Cool... Half the battle is understanding. I ran across this lil issue early on and was wondering what the heck, why am i getting those in my error messages. Anyway I understand the why now after deleting everything that could have caused them.
Plus I look at it this way, you took time out of your day to help me out. So I didn't want to leave the thread with out at least posting back.
Thanks for your posts crabtree . I am sure I will be up to speed in a few weeks...
I did not remove any code from formmail.
Last edited by billy; 12-Dec-2008 at 03:36 AM. Reason: Needed to clarify something else.
'tis cool.Plus I look at it this way, you took time out of your day to help me out. So I didn't want to leave the thread with out at least posting back.
Thanks for your posts crabtree . I am sure I will be up to speed in a few weeks...
theres lots to learn, but do what i did - take it slowly a step at a time.
read the doco too - its very good....and if u dont understand something in it, tell russell. ive seen him respond to someones post and update the doco with an hour!!!!!!
un-frigging-believable!![]()
Hey there!
You were close, the part you're looking for is in the formmail.php...just block out these lines and that should give you what you are looking for.
*/
if (!IsMailExcluded("realname"))
{
array_unshift($a_fld_order,"realname");
$a_clean_fields["realname"] = $SPECIAL_VALUES["realname"];
}
if (!IsMailExcluded("email"))
{
array_unshift($a_fld_order,"email");
$a_clean_fields["email"] = $SPECIAL_VALUES["email"];
}
*/
p.s. - do a search for with part of that code to easily find it.
Last edited by Aytch; 18-Mar-2011 at 12:01 AM. Reason: add. instructions
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks