Contact form HELP Newbie

Hi, I have been trying to set up a new webpage and I am using a free template but cannot get the Contact Form to work.
This is the link to the website if it helps: http://sodrasnickericentralen.se/Ny/index.html

<form>
	<div id="contact" class="section-content">
				<div class="row">
					<div class="col-md-12">
						<div class="section-title">
						  <h2>Kontakta oss</h2>
						  
						</div> <!-- /.section-title -->
					</div> <!-- /.col-md-12 -->
				</div> <!-- /.row -->
				<div class="row">
					<div class="col-md-12">
						<div class="map-holder"> </div> <!-- /.map-holder -->
					</div> <!-- /.col-md-12 -->
				</div> <!-- /.row -->
				<div class="row contact-form">
					<div class="col-md-4">
					  <label for="name-id" class="required">Namn:</label>
					  <input name="name-id" type="text" id="name-id" maxlength="40">
					</div> <!-- /.col-md-4 -->
					<div class="col-md-4">
						<label for="email-id" class="required">Email:</label>
						<input name="email-id" type="text" id="email-id" maxlength="40">
					</div> <!-- /.col-md-4 -->
					<div class="col-md-4">
						<label for="subject-id">Rubrik:</label>
						<input name="subject-id" type="text" id="subject-id" maxlength="60">
					</div> <!-- /.col-md-4 -->
					<div class="col-md-12">
						<label for="message-id" class="required">Meddelande:</label>
						<textarea name="message-id" id="message-id" rows="6"></textarea>
					</div> <!-- /.col-md-12 -->
					<div class="col-md-12">
					    
						<div class="submit-btn"><a href="" class="largeButton contactBgColor">Skicka</a> </div> <!-- /.submit-btn -->
					</div> <!-- /.col-md-12 -->
				</div>
			</div> <!-- /#contact -->
</form>

You appear to be missing the <form>...</form> tags unless Iā€™m very much mistaken.

Where did this template come from? There is no form element with any action in the page.
Inputs should be within a form element which should have an action attribute which points to the processing script.

I have added the < form>ā€¦ < / form> now
How do I add the action attribute into the current code and I guess it should point to a .PHP file that includes the code to send the e-mail(?)

I apologize for my bad knowledge but I am novice within this field.

The form: http://www.templatemo.com/tm-394-sonic

Oh yes. The most important bit!

This should explain the html side of forms:-
http://htmldog.com/guides/html/beginner/forms/

Correct, though it does not have to be php, though it is probably most common.
Creating the script is a whole other subject, probably best for the php forum.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.