Welcome to Admin Junkies, Guest — join our community!

Register or log in to explore all our content and services for free on Admin Junkies.

Making an html form usable

A

Allen Fan

Guest
Hey guys, I have an html form that is on my website and I cannot figure out how to get it to send an email with the form results after the user clicks on "submit". I tried creating a php script to send the email but I could not get it to work. Do you have any suggestions on how to get this going? Here is my code:

Code:

<div class="col-lg-6 col-sm-5 wow fadeInUp delay-05s">

<div class="form">

<input class="input-text" type="text" name="" value="Your Name *" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;">

<input class="input-text" type="text" name="" value="Your E-mail *" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;">

<textarea class="input-text text-area" cols="0" rows="0" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;">Please include the details of your request and preferred appointment time for us to contact you.</textarea>

<input class="input-btn" type="submit" value="submit">
 
Advertisement Placeholder
You actually need to enclose the entire thing (all form elements) with a <form> </form> tag. <div class=form> does nothing. Then you need to put an action attribute to tell the form what to do when the form submits

<form action=“yourphpscript.PHP”>
(your form elements)
<input type=“submit”>
</form>

Hope this helps somebody somewhere down the line.
 

Log in or register to unlock full forum benefits!

Log in or register to unlock full forum benefits!

Register

Register on Admin Junkies completely free.

Register now
Log in

If you have an account, please log in

Log in
Who read this thread (Total readers: 0)
No registered users viewing this thread.

Would You Rather #9

  • Start a forum in a popular but highly competitive niche

    Votes: 9 27.3%
  • Initiate a forum within a limited-known niche with zero competition

    Votes: 24 72.7%
Win this space by entering the Website of The Month Contest

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds