Log in

View Full Version : Getting Tutorial to Run



Webiter
12-27-2011, 08:08 PM
At this test position (http://www.postbox.webitry.net)

I would not have requirement for a full blown mass mailer.

Small number facility would suffice and could provide for a couple of hundred emails on lists. With that in mind and also to learn something of the workings of same scripts I am experimenting with the tutorial that I found at this link (http://www.devshed.com/c/a/PHP/Creating-a-Mailing-List-Manager-with-PHP/).

Not having success creating a New List which takes place on the newlist.php page with a controlling Form Action="makenewlist.php" (http://www.devshed.com/c/a/PHP/Creating-a-Mailing-List-Manager-with-PHP/2/)

The form is a s follows:


<form method=post action="makenewlist.php3">
<b>Name of the list:</b><input type=text name="Listname" size="40">
<br><br>
<b>One word description of the list:</b>
<input type=text name="Filename" size="40">
</td><td><table><tr><td valign=top>
<br><br>
<input type="submit" name="Submit" value="Make list">
</form>

Is the following the makenewlist.php3


<html><head>
<title>Updating file....</title>
</head><body>
<?$Filename = $Filename.".lst";$myfile = fopen("data/lists.txt","w");fputs($myfile,$Listname."|".$Filename."\n");fclose($myfile);?>Created new list <? echo $Listname ?>.<br>
<br>
<br><a href="index.php">Home</a>.<br>
<br><a href="addnames.php">Add names to the list</a>.<br>
<br><a href="picklist.php">Edit/Delete names</a>.<br><br>
<a href="data/log.txt">View Send Log</a>.<br>
</body></html>

I am getting a 500 internal server error - I think it is being caused by the makenewlist.php

Is there something obvious in the text of the turorial that my php inexperience is not picking up on and thus impacting on the New List creation?

Is it sensible to convert .php3 extension to .php extension?