php - IE is not loading page the page, does open file to clipboard -


the task, rather simple one. in 1 .html page html script task 'collect imput' , pass 'this data' (given variable names) onto .php page, display variables.

this simple .html page -

<html xmlns="http://www.w3.org/1999/xhtml">  <body> <form action="processorder.php" method="post"> <table border="0"> <tr bcolor="#cccccc"> <td with="150">item</td> <td with="5">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" /> </tr> <tr> <td>spark plugs</td> <td align="center"><input type="text" name="sparkqty" size="3" maxlength="3" /> </tr> <tr> <td colspan="2" align="center"><input type="submit" value="submit order" /> </td> </tr> </table> </form> </body> 

the input collected , call

<form action="processorder.php" method="post">  

fails 'load .php file browser open file onto clipboard.

the simple processorder.php file is

<?php // create short variable names $tireqty = $_post['tireqty']; $oilqty = $_post['oilqty']; $sparkqty = $_post['sparkqty']; ?>  <html xmlns="http://www.w3.org/1999/xhtml">  <head> <title>order results</title> </head>  <body> <h1>bob's auto parts</h1> <h2>order results</h2>  <?php echo "<p>order processed @ "; echo date('h:i, js f y'); echo "</p>"; echo '<p>your order follows:</p>'; echo $tireqty.'tires<br />'; echo $oilqty.';bottles of oil<br />'; echo $sparkqty.';spark plugs<br />'; ?> </body> </html> 

nothing complicated, simple exercise in passing variables around. so, question remains why call not load .php file instead opens .php file , variables collected in 1 page not passed onto page.

each page loaded onto browser load seperately of course, variables not collected in 1 page , passed onto other page principale objective.

if line on orderform.html page

<form action="processorder.php" method="post">  

is edited

<form action="processorder.html" method="post">  

then page loaced onto browser , not opened clipboard. other change .html file tag

all happening inside rapid php 2007 editor.

php 'present' in files , configured rapid 2007 editor.

one question ie browser , how browser detects/decides not load file, execute php parts or problem not loading file opening file clipboard.

your php files delivered text/plain server (or don't use server, or server doesn't support php)


Comments