I am creating a script & I need it to be able to send a GET request. The only thing is, it will be a script that is entered into the Url bar into people's browsers. Below is the PHP code I have.
<?php
$first = $_GET["first"];
$last = $_GET["last"];
$myFile = "names.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = $first;
fwrite($fh, $stringData);
$stringData = ":";
fwrite($fh, $stringData);
$stringData = $last;
fwrite($fh, $stringData);
$stringData = "
";
fwrite($fh, $stringData);
fclose($fh);
?>
I really need help. Thanks to everyone that helps me out.