<?php
// include the connect.php
include "connect.php";
// add affiliate
$go = $_POST['add'];
if ($go)
{
// if the form is submitted, then process it
// htmlspecialchars strips html, and addslashes cancels out quotes
// get all the variables from the form
$name = htmlspecialchars(addslashes($_POST['name']));
$url = htmlspecialchars(addslashes($_POST['url']));
$image = htmlspecialchars(addslashes($_POST['image']));
$email = htmlspecialchars(addslashes($_POST['email']));