I am new to php. I want to passe data from html page to php file.
here is the code of createComment.html
<form action="commentSave.php" method="POST"> <label>Name</label> <input type="text" name="name" value="" /><br> <label>Email</label><input type="text" name="email" value="" /><br> <label> Website</label><input type="text" name="web" value="" /><br> <?php echo $var="menuka"; ?> <textarea id="markItUp" cols="80" rows="20" name="comment"> </textarea> <input type="submit" value="Submit" /> </form>
what I tried was print the value of $var in the commentsave.php file
i got all the other values except $var.
i am trying this because I am developing a blog where i want to reply administrator's thread. so i get the thread ID of the thread and passe it with the form data of comments. so that i can read it back properly i.e thread and relevant comments from the data base.
that is why i am asking how to pass the value of $var to php file....
I think you can understand me. please somebody help me.
thanks in advance,