Noob at PHP no idea.. it involves getting info from text fie
Posted: Sat Aug 25, 2007 12:35 pm
feyd | Please use
_____________________________________
form_handler.php[/syntax]
_____________________________________
I just dont exactly know what to do with the PHP
I dont exactly understand how the HTML part knows were to send the inputed information
Please help out! Thanks!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Ok so basically I am doing this subscribe thing for a newsletter on my site
The person inputs his email into the textfield, clicks submit... then the email gets saved somehow. Dont exactly know
I found this code on wikipedia
_____________________________________
form.html
[syntax="html"]<html>
<body>
<form action="form_handler.php" method="get">
User Name: <input name="user" type="text" />
<input type="submit" />
</form>
</body>
</html>form_handler.php[/syntax]
Code: Select all
<html>
<body>
<?php
/*
* This will print whatever the user put into the form on the form.html page.
*/
$name = $_GET['user'];
echo "Hello, ". $name ."!";
?>
</body>
</html>_____________________________________
I just dont exactly know what to do with the PHP
I dont exactly understand how the HTML part knows were to send the inputed information
Please help out! Thanks!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]