PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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>
<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
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]
Normally, you would store this information into a database like MySQL, PostgreSQL etc.
If you are so new to php and html and want a newsletter system on your site, then I suggest you first try deploying phpList - an open-source newsletter management system which'll save you a load of time.
anjanesh wrote:Normally, you would store this information into a database like MySQL, PostgreSQL etc.
If you are so new to php and html and want a newsletter system on your site, then I suggest you first try deploying phpList - an open-source newsletter management system which'll save you a load of time.
I wholly agree with anjanesh! There's nothing wrong with being a newbie--we all were, once--but for a newbie to step right into a somewhat advanced application the first time is usually a mistake. You will likely spend a lot of time and maybe screw up your operation. Find a pre-scripted solution--there are lots of them out there. Then try working from the simplest PHP operations if you want to learn PHP.