View Single Post
  #7 (permalink)  
Old March 10th, 2006, 07:39 PM
mall9@hotmail.com mall9@hotmail.com is offline
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I gave that a go, and it looked to make sense. Im not getting a syntax error from the php code, BUT i am getting the error message that i have already posted the exact same problem when i have not.

So it's outputing the code:


?>
            <br>You have already made this request
            , <?php echo $_POST['StaffID']; ?>,
            Enter another!</b>

<?
include "conn1.inc.php";
?>

<FORM action="fault_form.php" method="post">

      <table border="5" cellpadding="1" cellspacing="2" align="center">

        <tr>
        <td bgcolor="">
          StaffID:
        </td>
        <td bgcolor="">
          <input type="text" name="StaffID" value="<? echo
            $_SESSION['staff_logged']; ?>"><br>
        </td>
        </tr>
        <tr>
        <td bgcolor="">
          Date:
        </td>
        <td bgcolor="">
          <input type="text" name="Date" value="<? echo
            $today = date("Y/m/d"); ?>"><br>
        </td>
        </tr>

        <tr>
        <td bgcolor="">
          Time:
        </td>
        <td bgcolor="">
          <input type="text" name="Time" value="<? print date("H:i:s"); ?>"><br>
        </td>
        </tr>

        <tr>
        <td bgcolor="">
          Location:
        </td>
        <td bgcolor="">
          <input type="text" name="Location" value="<? echo
            $_POST['Location']; ?>"><br>
        </td>
        </tr>

        <tr>
        <td bgcolor="">
          DeviceID:
        </td>
        <td bgcolor="">
          <input type="text" name="DeviceID" value="<? echo
            $_POST['DeviceID']; ?>"><br>
        </td>
        </tr>

        <tr>
        <td bgcolor="">
          Please enter brief description of problem<br>
          (250 Words Max):
        </td>
        <td bgcolor="">
          <textarea name="Problem_Desc" rows="2" cols="16" value="<?
          echo $_POST['Problem_Desc'];?>"></textarea><br>
        </td>
        </tr>

        <tr>
        <td bgcolor="" colspan=2 align="center">
          <input type="submit" name="submit" value="Submit">
          <input type="reset" value="Clear">
        </td>
        </tr>
    </table

  </form>

------------------------------------------

im also getting the //Updating the database message dispayed. Weird!

Hope this makes sense.

By the way, when you reply the next time, can you just state the time in 24 hour format so I know when it's best time to possibly respond to each other.

Thanks for the help

Appreciate it.

Hope to hear from you soon.

Reply With Quote