Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 119881

Re: Email form in edge?

$
0
0

Hi Zaxist,

 

Hope your offer still stands. I'm really stumped on this and can use some help.

 

Here is what I have:

 

1. Stage - compositionReady

 

$("<input type='text' id='Email' name='email_address'  tabindex='1' maxlength='200' style='background-color:white; border:1px solid black' required>").appendTo(sym.$("email"));

$("<input type='text' id='Name' name='full_name' tabindex='2' maxlength='200' style='background-color:white; border:1px solid black' required>").appendTo(sym.$("name"));

$("<input type='text' id='Phone' name='phone_number'  tabindex='3' maxlength='200' style='background-color:white; border:1px solid black' required>").appendTo(sym.$("phone"));

$("<input type='text' id='Event' name='event_name'  tabindex='4' maxlength='200' style='background-color:white; border:1px solid black' required>").appendTo(sym.$("event"));

 

 

$("<textarea type='text' id='Info' name='additional_information' tabindex='5' cols='30' rows='4' maxlength='200' style='background-color:white; border:1px solid black; overflow:auto; resize:none; ' required></textarea>").appendTo(sym.$("info"));

 

 

2. Submit_btn - click

 

var emailFromVal = Email.value;

 

var messageVal = "<strong><p><font face='helvetica' size='5'> Name : "+Name.value+"<br><br> Phone: "+Phone.value+"<br><br> Event : "+Event.value+"<br><br>  Information : "+Info.value+"</p>";

 

// we add this variable to make sure if anyone find out the address of our php file cant send empty message by calling php file by url

var Permission = 1;

alert("Thank you, we will contact you shortly");

$.post("sendEmail.php",{ flag:Permission, email:emailFromVal, message:messageVal });

  

//sym.$("#Email").detach();

//sym.$("#Firstname").detach();

//sym.$("#Lastname").detach();

//sym.$("#Telephone").detach();

//sym.$("#City").detach();

//sym.$("#Country").detach();

//sym.$("#Message").detach();

  

Permission = 0;

 

 

3. PHP File

 

<?php

 

ini_set("SMTP","mail.mydomain.com");

ini_set("smtp_port","25");

 

if (isset($_POST['flag'])) {

 

printf('<pre>%s</pre>', print_r($variable, true));

 

 

$to = 'bevans@beneint.com';

$subject = 'Event Registration from HWFC Site';

$message = $_POST['message'] . "\r\n";

$headers = 'From: ' . $_POST['email'] . "\r\n" .

'MIME-Version: 1.0' . "\r\n" .

'Content-Type: text/html; charset=UTF-8' . "\r\n" .

'Reply-To: ' . $_POST['email'] . "\r\n" .

'X-Mailer: PHP/' . phpversion();

 

mail($to, $subject, $message, $headers);

 

}

?>

 

 

Like I said before, this works fine in Chrome, but the fields are not even viewable in IE10. You can view the test form with the above code here. If you hit your tab key 8 times the cursor will show up in the first field even though the field is not visible.

 

Any help would be appreciated.

 

Thanks,

Bill


Viewing all articles
Browse latest Browse all 119881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>