Forum Moderators: coopster
I was just wondering what the necessary structure/statements would be, or any site where i could find a tutorial
thanks in advance :)
$_POST is the predefined array to access the user-entered form data. If you define a form like
<form action="process.php" method="post">then after submitting the form a line like
<input type="text" size="30" name="title">
<input type="submit" value="Send">
</form>
<?php echo $_POST['title'];?>in process.php would print the value the user typed into your text input field.
See the documentation at [php.net ]
Whether you stick the input into a database or a flat file depends on the amount of entries you expect. In terms of scalability I'd always prefer a database approach. Be sure to check the input for malicious bits and pieces, as it is user input you cannot trust.
Regards
Markus