My PHP code outputs the following HTML snippet on my form page. There are several iterations of this depending on the number of lines output from the previous form's SQL query. The number on the end of each name is incremented by one for each row.
Code: Select all
<td><input type="text" name="client_as1" value=""</td>
<td><input type="text" name="interface1" value=""</td>
<td><input type="text" name="interface_speed1" value=""</td>
<td><input type="text" name="interface_encapsulation1" value=""</td>
Code: Select all
$client_as = $_POST[client_as . $x];
$interface = $_POST[interface . $x];
$interface_speed = $_POST[interface_speed . $x];
$interface_encapsulation = $_POST[interface_encapsulation . $x];
...
...
echo $client_as;
echo "\n";
echo $interface;
echo "\n";
echo $interface_speed;
echo "\n";
echo $interface_encapsulation;
echo "\n";
When I comment out the following, everything works fine:Parse error: syntax error, unexpected T_INTERFACE, expecting ']' in /home/user123/www-develop/path/path/filename.php on line 38
Code: Select all
//$interface = $_POST[interface . $x];
Thanks in advance!!!!