Posted by Simon on 12/18/05 20:31
what doesn't work with it. A clue would be useful such as an error or
something.
"shockwavedude" <meddziner@yahoo.com> wrote in message
news:1134928798.977604.71610@g14g2000cwa.googlegroups.com...
> <body><form action="welcome2.php" method="post">
> Enter your name:
> <input name="name" type="text"/>
> Enter your age:
> <input name="age" type="text" />
> <input name="submit" type="submit" />
> </form>
> <?php
> $a = $_POST["name"];
> $b = $_POST["age"];
> $entry_line = " Name: $a, AGE: $b";
> $fp = fopen("test.txt", "a");
> fputs($fp,$entry_line);
> fclose($fp);
> ?>
> </body>
> </html>
>
Navigation:
[Reply to this message]
|