php - Parse error: syntax error, unexpected end of file in on line 122 -
***> 1 hlpe me pleaz problems in php end of file error make me crazy here code*
<?php if ($_post["submit"]) { if (!$_post['name']) { $error="<br />please enter name"; } if (!$_post['email']) { $error.="<br />please enter email address"; } if (!$_post['comment']) { $error.="<br />please enter comment"; } if ($error) { $result='<div class="alert alert-danger"><strong>there error(s) in form:</strong>'.$error.'</div>'; } ?> <!doctype html> <html> <head> <title>my first webpage</title> ! <meta charset="utf-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> ! <!-- latest compiled , minified css --> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/ bootstrap.min.css"> ! <!-- optional theme --> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/ bootstrap-theme.min.css"> ! <style> ! .emailform { border:1px solid grey; border-radius:10px; margin-top:20px; } ! form { padding-bottom:20px; } ! </style> ! </head> ! <body> ! ! ! ! ! <div class="container"> ! <div class="row"> ! <div class="col-md-6 col-md-offset-3 emailform"> <h1>my email form</h1> ! ! <p class="lead">please in touch - i'll can.</p> ! <form method="post"> ! <div class="form-group"> ! <label for="name">your name:</label> <input type="text" name="name" class="form-control" placeholder="your name"/> ! </div> ! <div class="form-group"> ! <label for="email">your email:</label> <input type="email" name="email" class="form-control" placeholder="your email"/> ! </div> ! <div class="form-group"> ! <label for="comment">your comment:</label> <textarea class="form-control" name="comment"></textarea> ! </div> ! <input type="submit" name="submit" class="btn btn-success btn-lg" value="submit"/> ! ! </form> ! </div> ! </div> ! </div> <!-- latest compiled , minified javascript --> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> </body> </html>
some 1 hlpe me pleaz problems in php end of file error make me crazy here code*
the "{" first if never closed.
Comments
Post a Comment