drapm
December 18, 2023, 10:33pm
1
I have following code. It displays Registered Trade mark symbols correctly on webpage but does not send symbols in filled form by form mail. Please let me know where am I wrong and how to fix it. These symbols in other places are coming properly except this radio button.
<input type="radio" checked name="responcibility" value=" I will be solely responsible for false information I submit to xxx.Com®™." required>
I will be solely responsible for false information I submit to xxx.Com®™.<br>
Thanks in advance.
Best regards,
Arun
Try this…
<form action="" accept-charset="utf-8">
<label>Enter character encoding: -
<input name="trademark" value="® ™">
</label>
<input type="submit">
</form>
2 Likes
drapm
December 19, 2023, 2:22am
3
xxx.Com®™. is coming by email.
SamA74
December 19, 2023, 5:39pm
4
By what process is the email sent?
1 Like
drapm
December 19, 2023, 8:25pm
6
Formmailer
<form id="kontaktformular" class="kontaktformular" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="post" enctype="multipart/form-data">
drapm
December 19, 2023, 8:28pm
7
<form id="kontaktformular" class="kontaktformular" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="post" enctype="multipart/form-data">
drapm
December 20, 2023, 7:52pm
10
I hope this may help also here:
<?php
function sendMyMail($fromMail, $fromName, $toMail, $subject, $content, $attachments=array()){
$boundary = md5(uniqid(time()));
$eol = PHP_EOL;
$header = "From: =?UTF-8?B?".base64_encode(stripslashes($fromName))."?= <".$fromMail.">".$eol;
$header .= "Reply-To: <".$fromMail.">".$eol;
$header .= "MIME-Version: 1.0".$eol;
if(is_array($attachments) && 0<count($attachments)){
$header .= "Content-Type: multipart/mixed; boundary=\"".$boundary."\"";
}
else{
$header .= "Content-type: text/plain";
}
$subject = "=?UTF-8?B?".base64_encode($subject)."?=";
return mail($toMail, $subject, $message, $header);
}
drapm
December 21, 2023, 5:12pm
11
snadyleiby:
Have you added…
accept-charset="utf-8"
…to it yet?
Sir, do I need to change something here?:
class PHPMailer
{
const CHARSET_ASCII = 'us-ascii';
const CHARSET_ISO88591 = 'iso-8859-1';
const CHARSET_UTF8 = 'utf-8';
const CONTENT_TYPE_PLAINTEXT = 'text/plain';
const CONTENT_TYPE_TEXT_CALENDAR = 'text/calendar';
const CONTENT_TYPE_TEXT_HTML = 'text/html';
const CONTENT_TYPE_MULTIPART_ALTERNATIVE = 'multipart/alternative';
const CONTENT_TYPE_MULTIPART_MIXED = 'multipart/mixed';
const CONTENT_TYPE_MULTIPART_RELATED = 'multipart/related';
I do not know what your problem is?
In your original post you have an input type="radio"
The code that I posted would work for that also…
<form action="" accept-charset="utf-8">
<label>Check this radio: -
<input type="radio" name="responsibility" value="®™" required>
</label>
<input type="submit">
</form>
On form submission responsibility=®™ is sent.
What happens after form submission, though, is not an HTML problem .
drapm
December 21, 2023, 7:18pm
13
Thank you so much for your kind help, but things are not working for me somehow.
Now, once again, this is form (I have shortened it):
<form id="kontaktformular" class="kontaktformular" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" accept-charset="utf-8" enctype="multipart/form-data">
<p><FONT size="2" face="Verdana, Arial, Helvetica, sans-serif">
<label><input type="radio" checked name="responcibility" value=" I will be solely responsible for false information I submit to 5StarAstrology.Com®™." required></label>
<div class="row" id="send">
<div class="col-sm-8">
<button type="submit" class="senden" name="en-us-kf-km" style="border: 0; background-color: transparent;" value="Send"/><img src="img/submit.gif" alt="SomeAlternateText"></button>
</div>
</div> </form>
And this is received by email (color is added here, it is in plain text with black color in email):
* I will be solely responsible for false information I submit to 5StarAstrology.Com®™.
system
Closed
March 22, 2024, 1:37pm
15
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.