Using a Form With Variables as Part of a Function

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-05-03T09:57:43Z Indexed on 2010/05/03 10:08 UTC
Read the original article Hit count: 204

Filed under:

Hello,

Could the form below be part of a function? I am wondering if it might not be able to be part of a function since it has variables.

Thanks in advance,

John

echo '<form  action="http://www...com/sandbox/comments/comments2.php" method="post"> 
    <input type="hidden" value="'.$_SESSION['loginid'].'" name="uid">
    <input type="hidden" value="'.$submissionid.'" name="submissionid">  
    <input type="hidden" value="'.$submission.'" name="submission">
    <input type="hidden" value="'.$url.'" name="url">
    <input type="hidden" value="'.$submittor.'" name="submittor">
    <input type="hidden" value="'.$submissiondate.'" name="submissiondate">
    <input type="hidden" value="'.$countcomments.'" name="countcomments">
    <input type="hidden" value="'.$dispurl.'" name="dispurl">



    <label class="addacomment" for="title">Add a comment:</label>

    <textarea class="commentsubfield" name="comment" type="comment" id="comment" maxlength="1000"></textarea>  

    <div class="commentsubbutton"><input name="submit" type="submit" value="Submit"></div> 
</form>
'; 

© Stack Overflow or respective owner

Related posts about php