Problems doing this edit form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ike_obi
Forum Newbie
Posts: 2
Joined: Sun Nov 17, 2002 5:25 pm

Problems doing this edit form

Post by ike_obi »

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>


Code: Select all

&lt;?php
&lt;?
for ($x=0; $x&lt;2; $x++) 
{ 

?&gt;



<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

&lt;?php
}
?&gt;


Help
serg4444
Forum Newbie
Posts: 9
Joined: Fri Nov 22, 2002 10:27 am

Post by serg4444 »

Yes, it will work for you

Sincerely,
Sergey Booyny
AlarIT programmer
http://www.AlarIT.com
Post Reply