help required in PHP, a bit urgent

  • From: sameer manohtra <sameermanohtra@xxxxxxxxx>
  • To: programmingblind <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 7 Aug 2009 16:04:43 +0530

hey everyone,
writing after a long again, but a good news is, that i'm now able to
create very basic application on the vb.net which could never be
possible without the help from you techies.
so, thanks to one and all who have helped me in achieving this goal of
developing my own applications on the vb.net. in fact, that's really
basic, and i still don't know anything apart from simple "1 2 3" like
operations, but i'm in the process, and hopefully i'll be able to
grasp the custems of the programmer's paradise soon.
after having a flare of vb.net, the next thing what the people at the
institute where i'm learning are teaching, is PHP.
since i already know html and javascript since my high school days,
thought to have a plunj of this as well, so i've joined the php
training.
it has started a few days back, and the assignment what had been given
by them seems to be trickyer to me.
they have given me an assignment to create a contact form and it's PHP
script which should e-mail the form to the administrator of the
website.
i having a website of my own which i have bought a few days back to
practice these stuffs.
now, the problem is, that even though i have applyed all the things
what i have learned untill now, yet i'm not able to properly execute
the script as the error comes as following:
Parse error: syntax error, unexpected T_STRING on line 4.

i'm pasting here the html code that i've written and the PHP code as well.
please note, that the validations on the form still need to be done,
just testing  first whether it's getting execute or not, which had
been unsuccessfull untill now.
here is the html code first:

<form target="_blank" onsubmit="return window.confirm(&quot;You are
submitting information to an external page.\nAre you sure?&quot;);">
<form name="contact" action="http://contact.php"; method="post"
target="_blank" onsubmit="return window.confirm(&quot;You are
submitting information to an external page.\nAre you sure?&quot;);">
<br>
<h1>Contact Form</h1>
<p>
Title:
<select name="title">
<option value="mr.">Mr.</option>
<option value="ms.">Ms.</option>
</select>
<p>
First Name:
<input type="text" name="first name">
<br>
Last Name:
<input type="text" name="last name">
<br>
Contact Number:
<input type="text" name="contact number">
<br>
Valid E-mail Address:
<input type="text" name="valid email">
<br>
Re-enter Valid Email Address:
<input type="text" name="revalid email">
<br>
Message:
<input type="text" name="message">
<input type="submit" value="Submit!">
</p></p></form>
</form>

now, here is the PHP code:


<?php
$agree = $_REQUEST["agree"] ;
$title = $_REQUEST["title"] ;
$first name = $_REQUEST["first name"] ;
$last name = $_REQUEST["last name"] ;
$contact number = $_REQUEST["contact number"] ;
$valid email = $_REQUEST["valid email"] ;
$revalid email = $_REQUEST["revalid email"] ;
$message = $_REQUEST["message"] ;
mail( "sameermanohtra@xxxxxxxxx", "Feedback",
$message, "From: $email" );
?>

can some one please tell me, what's the problem in my code?
i have already tryed best of what i could, yet no solution seems to be working.
please note, that i've  kept both the html and PHP file in same
directory on the website.

i'm an inocent in this world, and it may be possible  that these
things you people might have done a dacates back, but i think you
would help this backword this time.
though you can reply as per your convenience, but need to submit this
one by monday or tuesday, so would appreciate if you can do it  on an
urgent basis.
guys, raise your hands for this  learner,
please?
sameer manohtra.
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: