Hi there;
I've received a irritant problem in my php code. Here is "index.html":

There are some javascript functions defined in the "head" tag.

<form autocomplete="off" action="result.php" method="post">
			<input type="text" id="name" />

			<label>Nachname: </label>
			<input type="text" id="surname" />
			<input type="text" id="department" />
		<input type="submit" value="Abfrage" />

Here is the content of the "result.php":

    $in_name = $_POST["name"]; 
    $in_surname = $_POST["surname"];
    $in_department = $_POST["department"];
    <p>Incoming values: </p>
    Name:<?php echo $in_name; ?>
    Surname:<?php echo $in_surname ; ?>
    Department:<?php echo $in_department; ?>


The values I've entered in the "index.html" do not appear in result.php. Redirection is working ,but name or surname do not appear.

How can I overcome that? Any help is greatly appreciated.

Input fields need to have the attribute name specified, and this is then used as the key for the $_POST array. E.g.

<input type="text" id="name" name="name" />
commented: useful post +5