Results 1 to 7 of 7

Thread: Simple Error Help [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    Simple Error Help [RESOLVED]

    I'm only new to PHP, I'm making a simple script and have an simple error can someone help with it please

    The Error is Parse error: parse error in /home/httpd/vhosts/httpdocs/includes/test.php on line 29

    PHP Code:
    <body>

    <php

    if ($action == "save")
    {
    echo "save";

    $to = "[email protected]";
    $subject = "PHP Is Great";
    $body = "PHP is one of the best scripting languages around";
    $headers = "From: [email][email protected][/email]\n";
    mail($to,$subject,$body,$headers);
    echo "Mail sent to $to";

    }else{
    ?>
    <form method="POST" action="test.php?action=save">

      <p><input type="text" name="T1" size="20"></p>
      <p><input type="radio" value="V1" name="R1"></p>
      <p><input type="radio" value="V2" checked name="R1"></p>
    <input type="submit" value="Submit" name="B1">
    <input type="reset" value="Reset" name="B2">

    </form>
    <?php
    }
    ?>

    </body>
    Last edited by kiwis; Apr 3rd, 2004 at 11:46 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width