Menu icon Foundation
Setting up a form submission

Hi,

I'm quite new to foundation zurb so anybody's help would be grateful!

I'm trying to create a form submission for a website and I need a hand setting up the submission part. I've attached the code I have and what it looks like too!

Any ideas as to how I can send a form from the website to an email?

Thanks

    		<form style="padding:10px;">
  				<div class="row" style="background-color:#ebebeb;">
    				<div class="large-12 columns">
      					<label>Name
        					<input type="text" value="Name" placeholder="Enter Name" />
      					</label>
    				</div>
  				</div>
  				<div class="row" style="background-color:#ebebeb;">
    				<div class="large-12 columns">
      					<label>Email
        					<input type="email" value="Email" placeholder="Enter Email" />
      					</label>
    				</div>
    				<div class="large-12 columns">
      					<label>Message
        					<textarea type="text" value="Message" placeholder="What's Your Message"></textarea>
      					</label>
      				<a href="sendmail.php" class="button" style="background-color:#1F232E;">Submit</a>
    				</div>
  				</div>
			</form>
            

         

Screen shot 2014 12 22 at 00.53.35

formsWebsite

Hi,

I'm quite new to foundation zurb so anybody's help would be grateful!

I'm trying to create a form submission for a website and I need a hand setting up the submission part. I've attached the code I have and what it looks like too!

Any ideas as to how I can send a form from the website to an email?

Thanks

    		<form style="padding:10px;">
  				<div class="row" style="background-color:#ebebeb;">
    				<div class="large-12 columns">
      					<label>Name
        					<input type="text" value="Name" placeholder="Enter Name" />
      					</label>
    				</div>
  				</div>
  				<div class="row" style="background-color:#ebebeb;">
    				<div class="large-12 columns">
      					<label>Email
        					<input type="email" value="Email" placeholder="Enter Email" />
      					</label>
    				</div>
    				<div class="large-12 columns">
      					<label>Message
        					<textarea type="text" value="Message" placeholder="What's Your Message"></textarea>
      					</label>
      				<a href="sendmail.php" class="button" style="background-color:#1F232E;">Submit</a>
    				</div>
  				</div>
			</form>
            

         

Screen shot 2014 12 22 at 00.53.35
Ben Gremillion almost 5 years ago

Hi Ewan, welcome to the community!

HTML/CSS/JS can’t send emails. Typically a HTML form sends data (input field values) to a server-side script that handles the processing and email routines. The “method” attribute (post or get) determines how that data is sent. The “action” attribute tells the form to what script it should send the data.

<form method="post" action="receiver.php">

What back-end language(s) does your server run?

Ewan Castle almost 5 years ago

Hi Ben,

Sorry for the delay, but I've fixed the issue I was having.

Thanks for your help anyway