Hi folks,
Here is my before submit code for my subject line:
I want to know how I can get spaces in between the form data??
Any help would be much appreciated 🙂
Here is my before submit code for my subject line:
<?php
$rows[0]->emailsubject = "Postcode: ".$_POST['Postcode']." TxName: ".$_POST['txname']." Fault: ".$_POST['field']."Contact ID: ".$_POST['contactid'];
?>
I want to know how I can get spaces in between the form data??
Any help would be much appreciated 🙂
Hi Mista,
what do you mean by "form data" ?
what do you mean by "form data" ?
Hi admin,
The form data thats in my subject line, basically i want to know how i can put spaces in the above code so that the data in the subject line has spaces between it so that its easily readable...
eg: Subject: Postcode: G23 4LM (space) TxName: blah blah (space)
Sorry its a monday and my brain isnt working properly 😟 🤣
The form data thats in my subject line, basically i want to know how i can put spaces in the above code so that the data in the subject line has spaces between it so that its easily readable...
eg: Subject: Postcode: G23 4LM (space) TxName: blah blah (space)
Sorry its a monday and my brain isnt working properly 😟 🤣
ah ok, but the above code you add doesn't show any spaces when you get it ?
ah ok, but the above code you add doesn't show any spaces when you get it ?
Nope 😟
try this :
can you see those spaces in the subject when you get the email ?
<?php
$rows[0]->emailsubject = "this is a space test!! ??? ???";
?>
can you see those spaces in the subject when you get the email ?
I can see spaces when I type them in as text but I want the space how I have described above eg:
Subject: Postcode: [postcode form data] {space} TxName: [txname form data] {space}
Subject: Postcode: [postcode form data] {space} TxName: [txname form data] {space}
I understand, try this :
<?php
$sub= "Postcode: ".$_POST['Postcode']." TxName: ".$_POST['txname']." Fault: ".$_POST['field']."Contact ID: ".$_POST['contactid'];
$rows[0]->emailsubject = $sub;
?>
I understand, try this :
<?php
$sub= "Postcode: ".$_POST['Postcode']." TxName: ".$_POST['txname']." Fault: ".$_POST['field']."Contact ID: ".$_POST['contactid'];
$rows[0]->emailsubject = $sub;
?>
Thats brilliant thanks! I just added a couple of spaces withing the value field for the fault as it didnt put a space in but its now perfect!
Thanks a million for your help! 😀
This topic is locked and no more replies can be posted.