Hi
i designed a captive portal which allow the guest to access the internet once he agrees to our license agreement. however before he agree/authenticate he can click on another link to report a problem.
in the report problem he will write his name, email and phone number. when clicking submit a function called processor.php will send an email to our support team
the php funcation is written below
Spoiler<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
mail("email@example.com","phpFormGenerator - Form submission","Form data:
Full Name: " . $_POST['field_1'] . "
E-Mail Address: " . $_POST['field_2'] . "
Mobile Number: " . $_POST['field_3'] . "
Report Problem: " . $_POST['field_4'] . "
");
include("confirm.html");
?>
however this function is not working and the processor.php is opened as webpage.
any suggestion if it is possible to do this or if there is a work around. i want the guest to be able to report problem using email address if for some reason he is facing problem of any sort.
thank you