Introduction
Here is the HTML Page Code
You can change the design of the HTML page since I am not providing you the CSS code of my page so you need to redesign it.
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title></title>
- <link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
- <body>
- <div class="">
- <form name="contact" method="post" action="sendmail.php" id="form1" style="float: left;
- padding: 0px">
- <h2>
- Book a Room</h2>
- <fieldset>
- <div class="row">
- <input type="text" class="input" name="name">
- Your Name:
- </div>
- <div class="row">
- <input type="text" class="input" name="email">
- E-Mail Address:
- </div>
- <div class="row">
- <input type="text" class="input" name="telephone">
- Contact No.:
- </div>
- <div class="row">
- <input type="text" name="SelectedDate1" class="input" id="SelectedDate" readonly
- onclick="GetDate(this);" />
- Check In:
- </div>
- <div class="row">
- <input type="text" name="SelectedDate2" class="input" id="Text1" readonly onclick="GetDate(this);" />
- Check Out:
- </div>
- <div class="row">
- <input type="text" class="input" name="Place">
- Pick Up/Drop:
- </div>
- <div class="row_textarea">
Additional Comments
- <textarea cols="1" rows="1" name="comments"></textarea>
- </div>
- <div class="wrapper">
- <a href="#" class="button1" onclick="document.getElementById('form1').submit()">Send</a>
- <a href="#" class="button1" onclick="document.getElementById('form1').reset()">Clear</a>
- </div>
- </fieldset> </form> </div> </form>

NikitaPosted Feb 12, 2020, 2:19 AM
<section id="service-single-area"> <div class="container"> <div class="row"> <div class="col-lg-9 col-md-8 col-sm-12 col-xs-12 pull-right"> <div class="service-single-content"> <div class="appoinment-form"> <div class="title"> <h2>Make an Appoinment</h2> </div> <form id="appoinmentone" name="appointment" action="sendmail.php" method="post" enctype="text/plain" > <div class="row"> <div class="col-md-6"> <input type="text" name="name" value="" placeholder="Your Name*" required="" id="name"> <input type="email" name="email" value="" placeholder="Your Mail*" required="" id="email"> <input type="text" name="phn" value="" placeholder="Phone Number*" required="" id="phone"> <input type="date" name="date" value="" placeholder="Apointment Date*" required="" id="date"> </div> <div class="col-md-6"> <select class="selectmenu" > <option selected="selected" id="prod" name="services">Select Service</option> <option id="prod">Commercial Aquaguard</option> <option id="prod">Industrial RO Plants</option> <option id="prod">Water Cooler</option> <option >Commercial Vacuum Cleaner</option> <option>Water Ionizers</option> </select> <textarea name="message" placeholder="Your Message.." required="" id="messsage"></textarea> </div> </div> <div class="row"> <div class="col-md-12"> <form method="post"> <button class="thm-btn bg-1" type="submit" onclick="document.getElementById('appoinmentone').submit();">Submit Now</button> </form> </div> </div> </form> </div> </div> </div> </div> </div> </section>
NikitaPosted Feb 12, 2020, 2:19 AM
I want to same php code for the following html file
NikitaPosted Feb 12, 2020, 12:10 AM
I set port no. to 587 in php.ini and alsoconfigure sendmail file
NikitaPosted Feb 11, 2020, 11:55 PM
Mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:\xampp\htdocs\nikitaemail\sendmail.php on line 65
NikitaPosted Feb 11, 2020, 11:55 PM
Its not working give me error
NikitaPosted Feb 11, 2020, 11:10 PM
How to configure smtp server