Skip to content
Snippets Groups Projects
Commit 2fb7f459 authored by Thomas Riechert's avatar Thomas Riechert
Browse files

email conformation using referer

parent 136cf66c
No related branches found
No related tags found
No related merge requests found
<?php <?php
if(isset($_POST['submit'])){ if((isset($_POST['submit']))&&(isset($_SERVER['HTTP_REFERER']))){
/* This code is to find all post elements */ /* This code is to find all post elements */
$refer=$_SERVER['HTTP_REFERER'];
$refer=substr($refer,strrpos($refer,'/')+1);
error_reporting(E_ALL); error_reporting(E_ALL);
$site = file_get_contents('registration-heloise.html'); $site = file_get_contents($refer);
$teile = explode("<!-- form-part -->", $site); $teile = explode("<!-- form-part -->", $site);
echo $teile[0]; echo $teile[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment