PDA

View Full Version : Field in received message



Sejo
09-Mar-2006, 11:12 AM
I have made a small feedback form and when i get mails from my visitors they appear as:




email:

realname:
Navn: John Williams
E-post: john@fakemail.fk
Beskjed: This is a test - have a nice weekend!
==================================
REMOTE_HOST=
REMOTE_ADDR=84.48.192.160
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; i-NavFourF; .NET CLR 1.1.4322; InfoPath.1) REMOTE_USER=



How do I get rid of the 2 fields at the top: email and realname?

Sejo
09-Mar-2006, 11:39 AM
Now I just got rid og the realname field by adding this line to my html:

<input type="hidden" name="mail_options" value="Exclude=realname" />

But I do not get rid of the mail field - any suggestions?

asket
09-Mar-2006, 11:40 AM
hi


in your HTML form, you can do this i think:


<input type="hidden" name="mail_options" value="Exclude=realname" />

same you can do with "email" i think

Sejo
09-Mar-2006, 11:44 AM
No that did not work, added this line:

<input type="hidden" name="mail_options" value="Exclude=email" />

And now these 2 lines in my html file looks like:

<input type="hidden" name="mail_options" value="Exclude=realname" />
<input type="hidden" name="mail_options" value="Exclude=email" />


Then both realname and mail appears in the response mail i receive

crabtree
09-Mar-2006, 11:49 AM
<input type="hidden" name="mail_options" value="Exclude=realname" />
<input type="hidden" name="mail_options" value="Exclude=mail" />


that's not valid HTML. the second one overwrites the first one.

you want:


<input type="hidden" name="mail_options" value="Exclude=realname;email" />


notice also it's called "email" not "mail".

asket
09-Mar-2006, 11:51 AM
"email" not "mail"
and don't create two hidden fields named "mail_options", create only one

Sejo
09-Mar-2006, 11:52 AM
Thanks a lot! This works!! :)