Posted by: Sourav | June 20, 2011

New form practise in PHP


<html>
    <head>
        <title>
            New form in exercise
        </title>
    </head>
    <body bgcolor=”green”>
       <table align=”center” border=”0″ bgcolor=”green” bordercolor=”brown” cellpadding=”0″ cellspacing=”0″
              width=”600″ >
        <tr>
            <td>
                <fieldset>
                    <legend><b><i><font size=”4″>Personnel Details:</font></i></b></legend>
               
                <table align=”center”>
         <form name=”newform2.php” action=”formresult.php” method=”post”>
           <tr><td> <center><b><font color=”white” size=”4″><?php echo $msg;?></font></b></center></td></tr>
           
        
              <center><b><font color=”white” size=”3″>Please enter the information to get access to the resources available
                </font></b></center>
               
       
        <tr>
            <td>
                Name:
            </td>
             <td >
                <input type=”text” name=”authorname” tabindex=”1″ maxlength=”50″
size=”50″ value=”<?php echo $_POST[‘authorname’];?>”>       
             </td>
        </tr>
        <tr>
            <td colspan=”2″>
        <center><b><font color=”white” size=”3″>(Format:Surname[:SPACE:]Name[:Space:]Second/Middle Name)
                </font></b></center>
            </td>
        </tr>
         <tr>
            <td>
               Birthdate:
            </td>
             <td >
                <input type=”text” name=”birthdate” tabindex=”2″ maxlength=”30″
size=”30″ value=”<?php echo $_POST[‘birthdate’];?>”>       
             </td>
        </tr>
         <tr>
            <td colspan=”2″>
        <center><b><font color=”white” size=”3″>(Format:dd/mm/yyyy or dd.mm.yyyy or dd-mm-yyyy)
                </font></b></center>
            </td>
        </tr>
         <tr>
            <td>
               Address:
            </td>
             <td >
                <input type=”text” name=”address” tabindex=”3″ maxlength=”50″
size=”50″ value=”<?php echo $_POST[‘address’];?>”>       
             </td>
        </tr>
         <tr>
            <td colspan=”2″>
        <center><b><font color=”white” size=”3″>(Enter the address)
                </font></b></center>
            </td>
        </tr>
         <tr>
            <td>
               City:
            </td>
             <td >
                <input type=”text” name=”city” tabindex=”4″ maxlength=”50″
size=”50″ value=”<?php echo $_POST[‘city’];?>”>       
             </td>
       <tr>
            <td colspan=”2″>
        <center><b><font color=”white” size=”3″>(Enter the name of the city)
                </font></b></center>
            </td>
        </tr>
         <tr>
            <td>
              State:
            </td>
             <td >
                <input type=”text” name=”state” tabindex=”5″ maxlength=”50″
size=”50″ value=”<?php echo $_POST[‘state’];?>”>       
             </td>
         </tr>
         <tr>
            <td colspan=”2″>
        <center><b><font color=”white” size=”3″>(Enter the name of the state)
                </font></b></center>
            </td>
         </tr>
         <tr>
            <td>
              Email:
            </td>
             <td >
                <input type=”text” name=”email” tabindex=”6″ maxlength=”50″
size=”50″ value=”<?php echo $_POST[’email’];?>”>       
             </td>
         </tr>
         <tr>
            <td colspan=”2″>
        <center><b><font color=”white” size=”3″>(Enter the Email address)
                </font></b></center>
            </td>
         </tr>
         <table align=”center”>
         <tr >
            <td >
                <input type=”submit” name=”submit” value=”submit” onclick=submit()>
          
            </td>
            <td>
                 <input type=”submit” name=”submit” value=”clear” onclick=reset()>
            </td>
         </tr>
         </form>
        
                </table>
            </td>
        </tr>
       
       
       </table>
    </body>
</html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: