A
Anonymous
Guest
I don't understand why, but it just won't get the info from my form.
Form code:
<form name="form1" method="post" action="addlink.php">
<input name="link" type="link" value="http://" size="50">
<input type="submit" name="Submit" value="Foreslå">
</form>
addlink.php code:
<?php
$filename = "addlink.txt";
$content = $_GET['$link'];
if (file_exists($fpn)) {
print($filename);
print('<br>');
print($content);
}
?>
I'm running Apache 2.0 and PHP 4.4.0 on my computer. Do I have to configure anything in php.ini to make it work with $_GET[]?
Form code:
<form name="form1" method="post" action="addlink.php">
<input name="link" type="link" value="http://" size="50">
<input type="submit" name="Submit" value="Foreslå">
</form>
addlink.php code:
<?php
$filename = "addlink.txt";
$content = $_GET['$link'];
if (file_exists($fpn)) {
print($filename);
print('<br>');
print($content);
}
?>
I'm running Apache 2.0 and PHP 4.4.0 on my computer. Do I have to configure anything in php.ini to make it work with $_GET[]?