form data not sending to php... php page comes up blank

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anfetienne
    Contributor
    • Feb 2009
    • 424

    form data not sending to php... php page comes up blank

    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
    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>
    PHP
    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;
    ?>
  • chathura86
    New Member
    • May 2007
    • 227

    #2
    it could be that your php code has some errors and you have set the display_errors to off. i assume that zonedate() has the problem, any way
    turn on the display_errors to see the problem

    Regards

    Comment

    Working...