- Edited
Good afternoon,I am in the middle of moving from 1.6 RC to 1.8.12 on a dev server.Everything is working perfectly except I am having trouble with some custom forms I created that just take form info and email it to a specific user.The issue seems to be that it no longer submits to itself, regardless of what I put in the <form> tag, it just goes to index.php when I hit submit.I even set the action to go to a page, and it still went to index.php.the custom form uses the following layout.itsupplies.phprequires /include/client/header.inc.phprequires /include/client/itsupp.inc.phprequires /include/client/footer.inc.phpsnippet from /include/client/itsupp.inc.php<?php$nameErr = $storeErr = $partIdErr = "";$name = $store = $partId = "";if ($_SERVER == "POST") { if (empty($_POST)) { $nameErr = "Name is required"; } else { $name = test_input($_POST); }}function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data;}?><h1>IT Supplies</h1><br /><h1>Please fill in the form below to request IT Supplies</h1><p><font color='red'><b>This page is ONLY for IT Supplies. Please request Office Supplies through the "Request Office Supplies" button.</b></font></p><form name="register" method="POST" action="<?php echo htmlspecialchars($_SERVER);?>"><table align="left" cellpadding=2 cellspacing=1 width="800"> <tr> <th width="20%">Full Name:</th> <td> <input type="text" name="name" size="25" value="<?php echo $name; ?>"> <font class="error">* <?php echo $nameErr;?></font> </td> </tr>