robotta1530 Posted February 10, 2010 Share Posted February 10, 2010 Hi, I havent got a clue about php, and not much of a clue about html - but i have managed to make a simple website and I need help integrating the following code into my index page. I have inserted it and changed the file to .php but none of the code looks active, ie not coloured and the email.txt file I have created does not get updated. Also when i view the page in a browser part of the code appears to the left - ,");?> This is the original webpage that i want to add the code to; www.robertlang.co.uk/index2.htm Any help would be very welcome The mailing list code is: <?php $database = "emails.txt"; $file = fopen($database, "a+"); $size = filesize($database); $name = $_POST['name']; $email = $_POST['email']; if($_POST['submit']) fwrite($file, "\"$name\" <$email>,"); ?> <form method="post"> <p align="center"><b><font face="Arial">Email</font></b>: <input type="text" name="email" size="20"><input type="submit" value="Subscribe" name="submit"> </p> <p align="center"><br /><br /> </p> </form> Quote Link to comment https://forums.phpfreaks.com/topic/191707-help-needed-inserting-php-mailing-list-code-into-html-page/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.