Skip to content

Instantly share code, notes, and snippets.

Niklas Peterson NiklasPeterson

Block or report user

Report or block NiklasPeterson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@NiklasPeterson
NiklasPeterson / insert into your index.html
Created Oct 24, 2013
An Email form without the need of Php in your index.html file
View insert into your index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Your site</title>
<!--Copy and paste the code between these comments, to your own index.html file -->
<form method='post' action='mail.php'>
Epost:<br>
<input name='email' type='email' placeholder="Email" required>
@NiklasPeterson
NiklasPeterson / func.php
Last active Dec 25, 2015
Mail funktion + enkelt formulär. Cred till Alexander tim Gunnarsson som hjälpte till så att få funktionerna att funka!
View func.php
<?php
// Niklas Petersson
function email() {
$email = $_REQUEST['email'];
if ($email)
//if "email" is filled out,
{
//send email
You can’t perform that action at this time.