Problems doing this edit form
Posted: Wed Nov 20, 2002 8:07 pm
I'm doing an edit form from which users can change their cv/resume details that they have stored on the database.
Details such as personal, education history, employment, skills and references.
You know that users are more likely to have more than one education or employment history, so in the form I used a loop to repeat certain feilds for these sections.
My problem is trying to do the edit form that returns pre-filled values for the multi value sections like education, employment etc.
Please help me
Below is the reference section of what I've been doing. I'm I on the right track.?
<tr>
<td colspan=2>Name<br><font size="-2">(example: Ike Obi)</font></td>
<td>Phone</td>
<td>Email<br><font size="-2">(eg: ike_obi@domain.com)</font></td>
</tr>
<tr>
<td colspan=2><input type="text" name="ref_name[]" size="30"
value="<? echo $ref_name[$x];?>" maxlength="255"></td>
<td align="left"><input type="text" name="ref_phone[]" value="<? echo $ref_phone[$x];?>"
size="15" maxlength="25"></td>
<td><input type="text" name="ref_email[]" value="<? echo $ref_email[$x];?>"
size="20" maxlength="255"></td>
</tr>
Help
Details such as personal, education history, employment, skills and references.
You know that users are more likely to have more than one education or employment history, so in the form I used a loop to repeat certain feilds for these sections.
My problem is trying to do the edit form that returns pre-filled values for the multi value sections like education, employment etc.
Please help me
Below is the reference section of what I've been doing. I'm I on the right track.?
<tr>
<td colspan=2>Name<br><font size="-2">(example: Ike Obi)</font></td>
<td>Phone</td>
<td>Email<br><font size="-2">(eg: ike_obi@domain.com)</font></td>
</tr>
Code: Select all
<?php
<?
for ($x=0; $x<2; $x++)
{
?><tr>
<td colspan=2><input type="text" name="ref_name[]" size="30"
value="<? echo $ref_name[$x];?>" maxlength="255"></td>
<td align="left"><input type="text" name="ref_phone[]" value="<? echo $ref_phone[$x];?>"
size="15" maxlength="25"></td>
<td><input type="text" name="ref_email[]" value="<? echo $ref_email[$x];?>"
size="20" maxlength="255"></td>
</tr>
Code: Select all
<?php
}
?>Help