Page 1 of 1

Getting input from a form

Posted: Wed May 19, 2004 6:53 am
by winsonlee
How can i make a php file and get the following input from the form ??

Code: Select all

blog.html


<form method=POST action="post.php">
TITLE : <input type="text" name="title" style="width:300;">
<textarea name="yourFieldNameHere" style="width:800; height:150">
</textarea><br>
<input type="submit" name="submit" value="SUBMIT">
</form>

Millions of example

Posted: Wed May 19, 2004 7:01 am
by Lord Sauron
Hi there,

There are millions of examples to be found on the Web (including this forum), how this can be done. So, you could have made a little more efforts before posting this question.

But anyway; you can post your variables (which are the names of the input fields) by means of the ACTION-command.

ACTION=\"post.php?title=$title&fieldName=$yourFieldNameHere\"

Posted: Wed May 19, 2004 7:49 am
by patrikG

Posted: Wed May 19, 2004 7:57 am
by mortz

Code: Select all

$title = $_POST['title'];
and so on..