I'm new here and slowly, I mean slowly getting into PHP. The biggest issue I have is in configuring php to run on my computer. Anyway i managed to get xampp installed yesterday and it appears to get working.
I'm writing some very basic scripts at the moment. The problem I have is that every time a call the php file processorer.php, Firefox and ie open new tabs continually. I believe this to be a config issue. Has anyone experienced this behaviour before? If so how do you get around it?
Scripts I am using -
html calling script
- Code: Select all
<html>
<head>
<title>Bob's Auto Parts</title>
</head>
<body>
<form action="processorder.php" method="post">
<table border="0">
<tr bgcolor="#cccccc">
<td width="150" align="center">Item</td>
<td width="150" align="center">Quantity</td>
</tr>
<tr>
<td>Tires</td>
<td align="center"><input type="text" name="tireqty" size ="3" maxlength="3"/></td>
</tr>
<tr>
<td>Oil</td>
<td align="center"><input type="text" name="oilqty" size ="3" maxlength="3"/></td>
</tr>
<tr>
<td>Spark Plugs</td>
<td align="center"><input type="text" name="sparkqty" size ="3" maxlength="3"/></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="Submit" value="Submit Order"/></td>
</tr>
</table>
</form>
</body>
</html>
Processorder.php file
- Code: Select all
<html>
<head>
<title>Bob's Auto Parts - Order Results</title>
</head>
<body>
<h1>Bob's Auto Parts</h1>
<h2>Order Results</h2>
<?php
echo '<p>Order processed.</p>';
?>
</body>
</html>
Thanks is advance for your replies!!!