php - problem in web developing in eclipse -


so guys have simple problem. have 2 php sites. 1 contains html form calls "enrol.php" file. have tried uploading them on testserver (127.0.0.1). pages work fine. when click on page1.php (the 1 html form) takes me page2.php

but when try same thing in eclipse, nothing happens. checked paths , correct.

i 2 other similar files, same thing, , work fine.

here code page1.php:

<!doctype html public "-//w3c//dtd html 4.01//en" "http://www.w3.org/tr/html4/strict.dtd"> <html> <head> <meta content="text/html; charset=iso-8859-1" http-equiv="content-type"><title>enrol</title>  <style type="text/css"> p { font-family: arial,helvetica,sans-serif; font-size: large; } </style>  </head> <body>  <h1 style="width: 624px;">enrol student</h1> <p style="font-family: helvetica,arial,sans-serif;"><span style="font-size: 11pt; color: black;">the name, date of birth , gender of student recorded.&nbsp;</span></p> <p style="font-family: helvetica,arial,sans-serif;"><span style="font-size: 11pt; color: black;">the email supplied , assumed every student has distinct email.</span></p> <p style="font-family: helvetica,arial,sans-serif;"><span style="font-size: 11pt; color: black;"></span></p>  <form style="height: 340px; width: 675px;" target="_self" method="post" action="enrol.php" name="enrol">  <p style="font-family: helvetica,arial,sans-serif;"><span style="font-size: 11pt; color: black;">name &nbsp; <input maxlength="300" name="name"> &nbsp;</span></p>  <p style="font-family: helvetica,arial,sans-serif; width: 683px;"><span style="font-size: 11pt; color: black;"> date of birth: &nbsp;day <input size="3" name="day"> month <input size="3" name="month"> year&nbsp;<input size="4" name="year"> </span></p>  <p style="font-family: helvetica,arial,sans-serif;"><span style="font-size: 11pt; color: black;">email <input maxlength="100" name="email"></span></p>  <p style="font-family: helvetica,arial,sans-serif;"><span style="font-size: 11pt; color: black;">repeat email <input name="email2"></span></p>   <p style="font-family: helvetica,arial,sans-serif;"><span style="font-size: 11pt; color: black;">gender <select name="gender"><option>male</option><option>female</option></select> <br> </span></p>  <p style="font-family: helvetica,arial,sans-serif;"><span style="font-size: 11pt; color: black;"></span><button value="press " name="submit" size="30">submit</button> &nbsp; <button name="clear" type="reset">reset</button></p>  </form> <p><span style="font-size: 11pt; font-family: &quot;courier new&quot;; color: black;"></span><span style="font-size: 10pt; font-family: &quot;arial&quot;,&quot;sans-serif&quot;;"> </span></p>  </body> </html> 


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -