I'm trying to create a form for a plugin I'm trying to develop but not having much luck passing information from a form into a php variable. To test it out I'm using just a simple script which works perfectly run as a normal php script but will not pass the information when running it through DirectAdmin.
Heres the script:
How else can I get form data into php so I can use the information collected in my scripts.
Heres the script:
Code:
#!/usr/local/bin/php -c /usr/local/lib/php.ini
<?php
if (isset($_POST['test']))
{
$test = $_POST['test'];
echo "$test";
die;
}
echo "<form method='post' enctype='multipart/form-data'>";
echo "<input type='text' name='test' size='25'>";
echo "<input type='submit' name='install' value='Install'>";
echo "</form>";
?>
How else can I get form data into php so I can use the information collected in my scripts.