Im sorry to bother all of you but im a complete retard when it comes to scripting etc.
More to the point: I downloaded a completed script but im getting error
Notice: Undefined index: input_name in \index.php on line 17
and
Notice: Undefined index: input_text in \index.php on line 18
I know i just have to define them but i have no idea how to do that. If anyone is willing to help it would be lovley. Here is the code
<?php
$file = "shouts.txt";
?>
<p>
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<input type="text" value="Gamernick" name="input_name" /><br />
<input type="text" value="Suggestion/Feedback" name="input_text" /><br />
<input type="submit" value="Send Feedback!" />
</form>
</p>
<hr />
<p>
</p><p>
<?php
//insert new shout
$input_name = $_POST["input_name"];
$input_text = $_POST["input_text"];
//check if form has been submitted
if(isset($input_name) && isset($input_text) && $input_name!="Your name" && $input_text!="Your text" && strlen($input_name)>0 && strlen($input_text)>0){
$handle = fopen($file,"a"); //open shouts file to write (append)
fputs($handle,"$input_name|||||$input_text\n"); //insert name and shout
fclose($handle); //close file handle
}