473,466 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Hi, I am a newbie in PHP coding. I'm trying to create a page where students can uploa

1 New Member
Expand|Select|Wrap|Line Numbers
  1. <tr>
  2.       <td width="426" height="264" valign="top" bgcolor="#FFCC99">
  3.       <!--LOGIN FORM START -->
  4.       <form name="loginform" action="login_exec.php" method="post">
  5.           <table width="309" height="144" border="0" align="center" cellpadding="2" cellspacing="5">
  6.             <tr>
  7.               <td colspan="2"><!--the code bellow is used to display the message of the input validation-->
  8.                   <?php
  9.     if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && 
  10.  
  11. count($_SESSION['ERRMSG_ARR']) >0 ) {
  12.     echo '<ul class="err">';
  13.     foreach($_SESSION['ERRMSG_ARR'] as $msg) {
  14.     echo '<li>',$msg,'</li>';
  15.     }
  16.     echo '</ul>';
  17.     unset($_SESSION['ERRMSG_ARR']);
  18.     }
  19.     ?>
  20.                   <span class="style48">Staff /  Students Login</span></td>
  21.             </tr>
  22.             <tr>
  23.               <td width="116"><div align="right">Username</div></td>
  24.               <td width="177"><input name="username" type="text" /></td>
  25.             </tr>
  26.             <tr>
  27.               <td><div align="right">Password</div></td>
  28.               <td><input name="password" type="password" /></td>
  29.             </tr>
  30.             <tr>
  31.               <td><div align="right"></div></td>
  32.               <td><input name="input" type="submit" value="login" /></td>
  33.             </tr>
  34.           </table>
  35.       </form></td> <!--LOGIN FORM END -->
  36.       <td width="510" align="center" valign="top">
  37.        <!--REGISTRATION FORM START -->
  38.        <form action="code_exec.php" method="post" enctype="multipart/form-data" name="reg" id="reg" onsubmit="return validateForm()">
  39.           <table width="520" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#FFFFCC">
  40.             <tr>
  41.               <td colspan="2"><div align="center" class="style50">
  42.                 <?php
  43.     $remarks=$_GET['remarks'];
  44.     if ($remarks==null and $remarks=="")
  45.     {
  46.     echo 'Register Here';
  47.     }
  48.     if ($remarks=='success')
  49.     {
  50.     echo 'Your Registration Was Successful. Please Login To View/Print Your Profile';
  51.     }
  52.     ?>
  53.               </div></td>
  54.             </tr>
  55.             <tr>
  56.               <td width="206"><div align="right"><strong>First Name:</strong></div></td>
  57.               <td width="306"><input type="text" name="fname"  required /></td>
  58.             </tr>
  59.             <tr>
  60.               <td><div align="right"><strong>Last Name:</strong></div></td>
  61.               <td><input type="text" name="lname" required /></td>
  62.             </tr>
  63.             <tr>
  64.               <td width="206"><div align="right"><strong>Date of Birth:</strong></div></td>
  65.               <td width="306"> 
  66.               <script type="text/javascript" src="Calendar.aspx?dateFormat=dd/mm/yy"></script>
  67.  
  68.               <link type="text/css" href="jquery-ui-1.css" rel="stylesheet">              </td>
  69.             </tr>
  70.             <tr>
  71.               <td><div align="right"><strong>Gender:</strong></div></td>
  72.               <td><label> male
  73.                 <input type="radio" name="gender" id="male" value="male" />
  74.                 female
  75.                 <input type="radio" name="gender" id="female" value="female" />
  76.               </label></td>
  77.             </tr>
  78.             <tr>
  79.               <td width="206"><div align="right"><strong>Religion:</strong></div></td>
  80.               <td width="306"><input name="religion" type="text" id="religion"  required /></td>
  81.             </tr>
  82.             <tr>
  83.               <td width="206"><div align="right"><strong>State of Origin:</strong></div></td>
  84.               <td width="306"><select name="state" id="state">
  85.                 <option value="" selected="selected">- Select -</option>
  86.                 <option value="Abuja FCT">Abuja FCT</option>
  87.                 <option value="Abia">Abia</option>
  88.                 <option value="Adamawa">Adamawa</option>
  89.                 <option value="Akwa Ibom">Akwa Ibom</option>
  90.                 <option value="Anambra">Anambra</option>
  91.                 <option value="Bauchi">Bauchi</option>
  92.                 <option value="Bayelsa">Bayelsa</option>
  93.                 <option value="Benue">Benue</option>
  94.                 <option value="Borno">Borno</option>
  95.                 <option value="Cross River">Cross River</option>
  96.                 <option value="Delta">Delta</option>
  97.                 <option value="Ebonyi">Ebonyi</option>
  98.                 <option value="Edo">Edo</option>
  99.                 <option value="Ekiti">Ekiti</option>
  100.                 <option value="Enugu">Enugu</option>
  101.                 <option value="Gombe">Gombe</option>
  102.                 <option value="Imo">Imo</option>
  103.                 <option value="Jigawa">Jigawa</option>
  104.                 <option value="Kaduna">Kaduna</option>
  105.                 <option value="Kano">Kano</option>
  106.                 <option value="Katsina">Katsina</option>
  107.                 <option value="Kebbi">Kebbi</option>
  108.                 <option value="Kogi">Kogi</option>
  109.                 <option value="Kwara">Kwara</option>
  110.                 <option value="Lagos">Lagos</option>
  111.                 <option value="Nassarawa">Nassarawa</option>
  112.                 <option value="Niger">Niger</option>
  113.                 <option value="Ogun">Ogun</option>
  114.                 <option value="Ondo">Ondo</option>
  115.                 <option value="Osun">Osun</option>
  116.                 <option value="Oyo">Oyo</option>
  117.                 <option value="Plateau">Plateau</option>
  118.                 <option value="Rivers">Rivers</option>
  119.                 <option value="Sokoto">Sokoto</option>
  120.                 <option value="Taraba">Taraba</option>
  121.                 <option value="Yobe">Yobe</option>
  122.                 <option value="Zamfara">Zamfara</option>
  123.                 <option value="Outside Nigeria">Outside Nigeria</option>
  124.               </select></td>
  125.             </tr>
  126.             <tr>
  127.               <td width="206"><div align="right"><strong>Local Govt Area:</strong></div></td>
  128.               <td width="306"><input type="text" name="lgovt"  required id="lgovt" /></td>
  129.             </tr>
  130.             <tr>
  131.               <td width="206" height="29"><div align="right"><strong>Parents' Name:</strong></div></td>
  132.               <td width="306"><input type="text" name="pname"  required id="pname" /></td>
  133.             </tr>
  134.             <tr>
  135.               <td width="206" height="26"><div align="right"><strong>Parents' Address:</strong></div></td>
  136.               <td width="306"><textarea name="paddress" required="required" id="paddress"></textarea></td>
  137.             </tr>
  138.  
  139.             <tr>
  140.               <td><div align="right"><strong>Contact Phone No.:</strong></div></td>
  141.               <td><input type="text" name="contact" required /></td>
  142.             </tr>
  143.             <tr>
  144.               <td><div align="right"><strong>Picture:</strong></div></td>
  145.               <td><label>
  146.                 <input type="file" name="image" id="image" />
  147.               </label></td>
  148.             </tr>
  149.             <tr>
  150.               <td><div align="right"><strong>Extra Corricular Activities/Hubbies:</strong></div></td>
  151.               <td><textarea name="hubby" rows="6" required="required" id="hubby"></textarea></td>
  152.             </tr>
  153.             <tr>
  154.               <td width="206"><div align="right"><strong>Class of Intended Admission:</strong></div></td>
  155.               <td width="306"><select name="class" id="class">
  156.                 <option value="" selected="selected">- Select -</option>
  157.                 <option value="js1">JS1</option>
  158.                 <option value="js2">JS2</option>
  159.                 <option value="ss1">SS1</option>
  160.                 <option value="ss2">SS2</option>
  161.               </select></td>
  162.             </tr>
  163.              <tr bgcolor="#000000">
  164.               <td colspan="2" align="center" valign="middle"><span class="style49">
  165.                 <label><span class="style3">MEDICAL HISTORY</span></label>
  166.               </span></td>
  167.               </tr>
  168.              <tr>
  169.               <td><div align="right"><strong>Sickle Cell Anaemia:</strong></div></td>
  170.               <td><label>Yes
  171.                     <input type="radio" name="ss" id="yes" value="yes" />
  172.                     No
  173.                     <input type="radio" name="ss" id="no" value="no" />
  174.               </label></td>
  175.             </tr> 
  176.             <tr>
  177.               <td><div align="right"><strong>Asthma:</strong></div></td>
  178.               <td><label>Yes
  179.                     <input type="radio" name="asthma" id="yes2" value="yes" />
  180.                     No
  181.                     <input type="radio" name="asthma" id="no" value="no" />
  182.               </label></td>
  183.             </tr>
  184.             <tr>
  185.               <td><div align="right"><strong>Epilepsy:</strong></div></td>
  186.               <td><label>Yes
  187.                     <input type="radio" name="epilepsy" id="yes" value="yes" /> 
  188.                     No
  189.                     <input type="radio" name="epilepsy" id="no" value="no" />
  190.               </label></td>
  191.             </tr>
  192.             <tr>
  193.               <td><div align="right"><strong>Blood Group:</strong></div></td>
  194.               <td><input type="text" name="bgroup" required id="bgroup" /></td>
  195.             </tr>
  196.             <tr>
  197.               <td><div align="right"><strong>Any Allergy?:</strong></div></td>
  198.               <td><input type="text" name="allergy" required id="allergy" /></td>
  199.             </tr>
  200.             <tr>
  201.               <td><div align="right"><strong>Any Other Important Information?:</strong></div></td>
  202.               <td><textarea name="info" rows="6" required="required" id="info"></textarea></td>
  203.             </tr>
  204.             <tr>
  205.               <td><div align="right"><strong>Username:</strong></div></td>
  206.               <td><input type="text" name="username" required /></td>
  207.             </tr>
  208.             <tr>
  209.               <td><div align="right"><strong>Password:</strong></div></td>
  210.               <td><input type="password" name="password" required /></td>
  211.             </tr>
  212.             <tr>
  213.               <td><div align="right"></div></td>
  214.               <td><input name="submit" type="submit" value="Submit" /></td>
  215.             </tr>
  216.           </table>
  217.       </form></td> <!--REGISTRATION FORM END -->
  218.     </tr>
Jan 20 '14 #1
1 1691
Rabbit
12,516 Recognized Expert Moderator MVP
Please use code tags when posting code or formatted data.

I have no idea what your question is.
Jan 20 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: wassil | last post by:
i am newbie and i want create my own web build on XMLand XSL technology. i would like to know if exist some SW where is possible easy create a web page (something like Wysiwyg XML/XSL editor)...
0
by: Anonieko Ramos | last post by:
Here is one of the methods. http://www.devx.com/dotnet/Article/18011/0/page/1 The article say its like the new MASTER PAGES in 2.0. Its robust and upgradeable. Using web controls.
3
by: Budd | last post by:
Hello I got some problem on Back page if i want to go back the previous page by clicking the back button, how to do?? how to get the previous page link or some ease way to do?? thx a lot
1
by: itm | last post by:
I have merged the data from Access. Now I need Word to start a new page every time the sequence number changes. How is this accomplished? Also, is it possible to tell Word to hide duplicates? ...
4
by: iam247 | last post by:
Hi Can the following 2 things be done in asp.net? I do not need a lot of guidance on how to implement - just can it be done and any anticipated problems. 1. GENERATE PAGE ON THE FLY I am...
2
by: soheir | last post by:
i need a php code for a previous/next button to move from page to another or to the previous plzzzzzzzz and thx
0
by: Suresh Sharma | last post by:
i want to know how to create page dynamically like Sulekha.com which show his record per html page through programm. I am working on project such like this and i want to implement like this? ...
5
by: frozenade | last post by:
Hello all.. This is very simple question I think. :) How to create multiple page navigation? e.g: - index.php?page=home - index.php?page=download - index.php?page=contact Thank you very...
4
by: kevin21388 | last post by:
I am doing some development for a company and they have given me all the create table statements in a .sql file. Is there any way that I can use the create table statements or the .sql file itself...
2
by: lenniekuah | last post by:
I am having problem trying to convert VBNET2008 coding of creating XML File using C#NET2008. VBNETCoding version Do While DataReader.Read 'XML Element format ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.