Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Employee Management Script
#2
Didn't work, addadd.php has a error in the line 10

Fixed code:
PHP Code:
<?php
$salary
=$_GET["wage"]*$_GET["hours"]*$_GET["days"];
$rname=$_GET["fname"];
$file=fopen("test.txt","a");
fwrite($file,$rname);
fwrite($file,": ");
fwrite($file,$salary);
fwrite($file,"<br>");
fclose($file);

echo <<<HTML

<script type="text/javascript">
<!--
window.location = "http://localhost/home.php"
//-->
</script>

HTML;

?>

every string that should be printed on the screen inside of <?php and ?> must be done with print or echo...
Also you may want to remove http://localhost/ from your a tags and header function..
Reply


Messages In This Thread
Employee Management Script - by nevets04 - 12-21-2009, 12:16 AM
RE: Employee Management Script - by Gaijin - 12-21-2009, 12:32 AM
RE: Employee Management Script - by nevets04 - 12-21-2009, 12:44 AM
RE: Employee Management Script - by Gaijin - 12-21-2009, 12:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  php form script with upload script help andrewjs18 4 3,361 10-07-2010, 11:46 AM
Last Post: JMK940
  User Management Script - User Cake Support 9 5,651 05-13-2010, 03:21 PM
Last Post: Julie

Forum Jump:


Users browsing this thread: 2 Guest(s)