Open to many tabs

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!

Moderator: General Moderators

Post Reply
gdacies6
Forum Newbie
Posts: 1
Joined: Fri Jul 15, 2011 9:13 am

Open to many tabs

Post by gdacies6 »

Hi All

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!!!
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Open to many tabs

Post by McInfo »

  • Are there any files involved that you have not included here?
  • Does the problem persist if you disable JavaScript?
  • Does the problem occur with any other pages?
  • If you are able, can you reproduce the problem on another machine?
  • Have you scanned your computer for viruses/malware recently?
  • Have you changed anything in the Apache Server or PHP configurations?
  • Please explain, in explicit detail, the sequence of events that leads to the unexpected behavior.
Post Reply