PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1845
Number of posts: 5013

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Problems of Inherit form in a Table Posted by IamNew on 18 Nov 2011 at 5:54 AM
I am thinking to add in one more detail into a personal information column and I having troubles when I trying to insert a form into a existing table.
My purpose is to create 1 more row for user to upload their profile photo, existing table was distorted when I add in the upload photo section.

My initial codes:
<!-- Personal Information -->
<tr bgcolor="#FF9999">
<td height="22" colspan="3"><strong style="color: #FFF; font-size: 13px;">&nbsp;Personal Information</strong></td>
<tr bgcolor="#FFCCCC">
<td width="166" height="21"><strong>&nbsp;&nbsp;Name</strong></td>
<td width="12" height="21"><strong>:</strong></td>
<td width="640" height="21">
<strong id="sprytextfield1">
<label>
<input style="color: #009; font-family: Verdana, Geneva, sans-serif; font-size: 11px;" name="student_name" type="text" id="student_name" value="<?php echo $row_student['student_name']; ?>" size="40" maxlength="100" />
</label>
</strong>
</strong>
<strong style="color: #F00; font-size: 10px;">*</strong><strong class="style27 style25" style="color: #999; font-size: 10px"> eg: Sarimah Binti Abdul Rahim</strong>
</td>
</tr>
<tr bgcolor="#FFCCCC">
<td width="166" height="21"><strong>&nbsp;&nbsp;IC No</strong></td>
<td width="12" height="21"><strong>:</strong></td>
<td width="640" height="21">
<strong id="sprytextfield2">


Codes when I try to insert the upload photo section:
<!-- Personal Information -->
<tr bgcolor="#FF9999">
<td height="22" colspan="3"><strong style="color: #FFF; font-size: 13px;">&nbsp;Personal Information</strong></td>
<tr bgcolor="#FFCCCC">
  <td width="166" height="21"><strong>&nbsp;&nbsp;Photo</strong></td>
  <td width="12" height="21"><strong>:</strong></td>
  <td height="21"><FORM ENCTYPE="multipart/form-data" ACTION="_URL_" METHOD=POST>
Upload this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File"></FORM></td>
</tr>
<tr bgcolor="#FFCCCC">
<td width="166" height="21"><strong>&nbsp;&nbsp;Name</strong></td>
<td width="12" height="21"><strong>:</strong></td>
<td width="640" height="21">
<strong id="sprytextfield1">
<label>
<input style="color: #009; font-family: Verdana, Geneva, sans-serif; font-size: 11px;" name="student_name" type="text" id="student_name" value="<?php echo $row_student['student_name']; ?>" size="40" maxlength="100" />
</label>
</strong>
</strong>
<strong style="color: #F00; font-size: 10px;">*</strong><strong class="style27 style25" style="color: #999; font-size: 10px"> eg: Sarimah Binti Abdul Rahim</strong>
</td>
</tr>
<tr bgcolor="#FFCCCC">
<td width="166" height="21"><strong>&nbsp;&nbsp;IC No</strong></td>
<td width="12" height="21"><strong>:</strong></td>
<td width="640" height="21">
<strong id="sprytextfield2">


I add in
<FORM ENCTYPE="multipart/form-data" ACTION="_URL_" METHOD=POST>
Upload this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File"></FORM>

in the row above the student name. Purpose is to enable student to upload their own profile photo. Please help.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.