Hi, thanks for the reply
Since my first post, the code seems to be doing what I want it to do now.
About 5 hours of not working, then suddenly it does. I didn't add or change anything
to facilitate this so I'm a little confused as I don't know why this should happen.
This may be rather superflous now, but for the sake of completeness, this is a fuller description of the problem.
Following this example http://www.php.net/manual/en/tutorial.forms.php I don't have any problems so I wanted to expand upon it.
I'm using xampp which uses PHP 5.3.0 if that is any help.
I'm not using a database as yet as I'm trying to get a grasp on the basics first.
Including the html tags, the code looks like this.
*filename addcustomer.html
-------------------------------------------------------------------------
<html>
<title>Add Customer</title>
<br>
<hr>
<head><center><font size="10" color="black">Add Customer</font></center></head>
<br>
<hr>
<br>
<body>
<form action="additionsuccessful.php" method = "post">
Customer Name: <input type="text" name="name" /><br />
Carrier: <input type="text" name="carrier" /><br />
Service ID: <input type="text" name="service" /><br />
Termination Points: <input type="text" name="termpoints" /><br />
Service Type: <input type="text" name="servtype" /><br />
<input type="submit" /></p>
</form>
</body>
</html>
-------------------------------------------------------------------------
filename additionsuccessful.php
------------------------------------------------------------------------
<html>
<body>
You have successfully added: <br>
<br>
Customer Name: <?php echo $_POST["name"];?> <br />
Carrier: <?php echo $_POST["carrier"];?> <br />
Service ID: <?php echo $_POST["service"];?> <br />
Termination Points : <?php echo $_POST["termpoints"];?> <br />
Service Type: <?php echo $_POST["servtype"];?> <br />
<br>
to the database.
</body>
</html>
-------------------------------------------------------------------------
addcustomer.html returns a page exactly as I planned with title, heading and text boxes for the relevant fields.
EG:
--------------------
Customer Name:
Carrier:
Service ID:
Termination Points:
Service Type:
----------------------
Filling in these fields with, for example, the following info:
----------------------
Customer Name: AB
Carrier: CD
Service ID:EF
Termination Points: GH
Service Type: IJ
----------------------
Returns the following info in the additionsuccessful.php file.
-----------------------------
You have successfully added:
Customer Name: AB
Carrier:
Service ID:
Termination Points :
Service Type:
to the database.
-----------------------------
As a mentioned, this problem seems to be solved, but I don't know how or why!
Any ideas or should I just draw a line under this?
Apologies for the perhaps long-winded and superflous post.
Thanks,
john