Hi,
I'm trying to submit a simple form with hidden fields and 1 text area... but the values are parsing to the php file... can someone spot where i've gone wrong
HTML FORM
PHP
I'm trying to submit a simple form with hidden fields and 1 text area... but the values are parsing to the php file... can someone spot where i've gone wrong
HTML FORM
Code:
<form action="testSubmit.php" id="form_1234567890" method="POST"> <span class="w"> <div align="left"><textarea cols="45" rows="2" name="commentC" id="commentC" class="input"></textarea></div> </span> <input type="hidden" name="userName" id="userName" value="aetienne"/> <input type="hidden" name="userAV" id="userAV" value="andre.jpg"/> <input type="hidden" name="originID" id="originID" value="ab1234567890"/> <input type="hidden" name="commentID" id="commentID" value="1234567890"/> <input type="hidden" name="firstName" id="firstName" value="andre"/> <input type="hidden" name="lastName" id="lastName" value="etienne"/> <input type="hidden" name="formLocation" id="formLocation" value="statusReply"/> <div align="right"><input type="submit" id="submit" value="Comment"/></div> </form>
Code:
<?
$commentC = strip_tags($_POST['commentC']);
$userName = $_POST['userName'];
$userAV = $_POST['userAV'];
$originID = $_POST['originID'];
$originalCommentID = $_POST['commentID'];
$firstName = $_POST['firstName'];
$lastName = $_POST['lastName'];
$dateAdded = zonedate('d M Y H:i:s',true);
$formLocation = $_POST['formLocation'];
echo $originalCommentID;
echo $originID;
echo $commentC;
echo $userName;
echo $userAV;
echo $commentID;
echo $firstName;
echo $lastName;
echo $dateAdded;
echo $formLocation;
?>
Comment