BOARDS

planetluc.com discussion board

all about the planetlu.com scripts

You are not logged in.

Announcement

I had to clean the boards due to massive spam. Actually i deleted everything /-one after 1st Oct 2008. It was the only way to get this spam out of the boards. So i'm sorry for all serious users who registered/posted meanwhile.

#1 08-10-2007 20:28:23

hanslukas
Member
Registered: 28-01-2007
Posts: 20

message without name of fields, just his text

Hi Lukas or Sid,
i'm using myform and work fine,
usually i change the code for my visual
but this time
the form have following bilinguistic name for fields

nome / name |_____________|
indirizzo / address |_______________|

ecc. everytime bilinguist label.

So, i changed the code below

$fields[] = array("Nome / <em>Name</em>", "name", "line", "", "*", "Inserire il nome | Enter a name");
$fields[] = array("Indirizzo / <em>Address</em>", "address", "line", "", "", "");

But: when mail are sent you can read following texts:

Nome / <em>Name</em>: the name
Indirizzo / <em>Address</em>: the address

Then,
i would like a message like below:

the name
the address
the message

without name of field

It's possbile to have a solution?

Thanks

Offline

 

#2 08-10-2007 21:47:58

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: message without name of fields, just his text

hanslukas,

Look for the following code:

foreach ($fields as $field){
            $message .= "\n".$field[0].":".spaces($msgIndent-strlen($field[0]));


and change it to:

foreach ($fields as $field){
            $message .= "\n";


That should accomplish what you would like.


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#3 09-10-2007 12:53:11

hanslukas
Member
Registered: 28-01-2007
Posts: 20

Re: message without name of fields, just his text

thankyou Sid,
your solution
is what I asked

thankyou
hanslukas

Offline

 

#4 09-10-2007 12:59:43

hanslukas
Member
Registered: 28-01-2007
Posts: 20

Re: message without name of fields, just his text

Sorry Sid,
i would like    
to eliminate the / slashes like below

c\'è l\'indirizzo

I know i need a stripslashes, but where?

i thankyou
HL

Offline

 

#5 09-10-2007 22:48:40

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: message without name of fields, just his text

hans,

Just find:

mail($targetAddress, $emailSubject, $message, $fromAddress);

and before it add"

$emailSubject = stripslashes($emailSubject);
$message = $stripslashes($message);

mail($targetAddress, $emailSubject, $message, $fromAddress);


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#6 11-10-2007 00:07:41

hanslukas
Member
Registered: 28-01-2007
Posts: 20

Re: message without name of fields, just his text

just for thankyou again
HL

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

 
 
© 2003-2010 by planetluc.com · Bachtelstrasse 104 · CH-8400 Winterthur | Support | Login |