Display Feedback form in popup box on page load with the help of Javascript, Html and Css | Sanwebcorner

Display Feedback form in popup box on page load with the help of Javascript, Html and Css

Now i will give you the codes to display the feedback form in popup box on page load. This is one of the important concept to view the particular popup box on page load. In this popup box will set the feedback form or signup form to get the response from the client very easily. You can write the content what you want. You can set the images, contents, forms in the popup box.

In this feedback form onpage load will give the popup box on immediately after page load. The popup content or forms will be display here. If client interested to give the feedback they will fill the form. If they will click outside of the popup window the popup box will close automatically.

Here is i am using feedback form, When will fill the feedback form, the form information will go to the particular email id. the following php code will useful to send the form information to mail id.


This type of on load popup box really increased the visibility from the customer. So it is very useful to give the important news and feedback and lead generated forms. Most of the website they are using this types of popup boxes to generate the sales. Here is the source code and demo pages. Please check the demo page, then you can able to know how this process is working.



Code for Display Feedback Form on Page Load.:

<html>
<head>
<meta charset="utf-8">
<title>Display popup on page load</title>
<link rel="stylesheet" href="swc.css">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<link href="css/font-awesome.css" rel="stylesheet">
</head>
<body>
<div class="maintext">
<h2>www.sanwebcorner.com</h2>
</div>
<div id="boxes">
<div style="top: 50%; left: 50%; display: none;" id="dialog" class="window">
<div id="san">
<a href="#" class="close agree"><img src="close-icon.png" width="25" style="float:right; margin-right: -25px; margin-top: -67px;"></a>


<div class="form-body-w3l">
<form method="post" action="mail1.php">
<div class="user-text-w3ls">
<div class="w3ls-user">
<label>Fullname</label><br>
<input type="text" placeholder="NAME" name="name" required="required">
<span class="icon2"><i class="fa fa-user" aria-hidden="true"></i></span>
</div>
<div class="w3ls-password">
<label>Contact Number</label><br>
<input type="text" placeholder="CONTACT NUMBER" name="contactnumber" required="required">
<span class="icon3"><i class="fa fa-mobile" aria-hidden="true" style="    font-size: 22px;"></i></span>
</div>
<div class="clear"></div>
</div>
<div class="email-w3ls">
<label>Your e-mail</label><br>
<input type="email" placeholder="E-MAIL"  name="emailid" required="required">
<span class="icon1"><i class="fa fa-envelope" aria-hidden="true"></i></span>
</div>
<input type="submit" name="submit"  value="Signup">
</form>
</div>
</div>
</div>
<div style="width: 2478px; font-size: 32pt; color:white; height: 1202px; display: none; opacity: 0.4;" id="mask"></div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js"></script>
<script src="swc.js"></script>
</body>
</html>


Php File to Send the form information to the particular Email:

 <?php
if(isset($_POST['submit'])){
    $to = "admin@sanwebcorner.com";
    $from = "admin@sanwebcorner.com";
    $name = $_POST['name'];
    $mobile = $_POST['contactnumber'];
    $email = $_POST['emailid'];
    $subject = "New Enquiry From Website";
    $message = " \n\n Name:".$name ."\n\n  Email : " . $email ."\n\n Mobile :".$mobile."\n\n" ;
    $headers2 = "Feedback From Website: " . $email;
    mail($to,$subject,$message,$headers2);
echo '<script>alert("Thanks for Sign up...");</script>';
echo '<script>location.href = "http://rcdcindia.com/race-on-the%20international-tracks/"</script>';
    }
?>


Post a Comment

Labels

360 degree view product image 3d rotate 3d text 3step-form Accordion menu ajax All Browsers Animated Background Gradient animation audio controller auto complete Best accordion menu bootstrap border bounce effect on hover Breadcrumb calculate age by dob calendar Captcha change image on mouse move color chooser countdown Counter on scroll create random number Css css animation css buttons css hover css3 customized upload Button Date picker delete data from table Different scroll speed email otp verification email verifier Embed eventlist Expanding Menu feedbck form flash news section close button full screen menu Google custom search Google Maps Google reCAPTCHA Google site search gradient hide menu Horizontal News ticker Hover Htm Html html dropdown html form html5 html5 form validation Iframe image hover increment decrement textbox value based on select box Javascript Jquery js Layered image effect on mouse hover lock & unlock page scroll marquee marquee with close button mobile number validation mobile otp login Multi-level-drop-down-menu multi-level-form Multi-Step-form mysql News ticker on hover change text to image our team page password generator password strength checker Photoshop PHP populate html selectbox Popup image on click the link pure css Question type form random number generate Random password Redirect page Based on the select box while submit the form responsive responsive menu responsive popup box Responsive Vertical Time line design rotate image selectbox based on select box simple coming soon page simple countdown based on end date simple typing effect slider sliding tab sms otp login statistic counter on scroll switch tag shape team member Time picker toggle toggle view transparent button underline animation up down slide validation vertical fixed sidebar Webtips Youtube