kolakube Posted May 8, 2006 Share Posted May 8, 2006 Hiya allJust started PHP, Im having problems populating a field from the data base, here goes<input name="PHOTOONE" type="file" size="35" VALUE="<?php print "$row[PHOTOONE]"; ?>">when i try and preview this I get nothing on the field, if i had it on [b]type ="text"[/b] this works, but I want to create an edit page so I can populate the field with the existing field name, so if i do not want to update the info it will just post the old data field.Maybe Im missing something..Many thanks Quote Link to comment Share on other sites More sharing options...
lead2gold Posted May 8, 2006 Share Posted May 8, 2006 [!--quoteo(post=372325:date=May 8 2006, 01:18 PM:name=kola)--][div class=\'quotetop\']QUOTE(kola @ May 8 2006, 01:18 PM) [snapback]372325[/snapback][/div][div class=\'quotemain\'][!--quotec--]Hiya allJust started PHP, Im having problems populating a field from the data base, here goes<input name="PHOTOONE" type="file" size="35" VALUE="<?php print "$row[PHOTOONE]"; ?>">when i try and preview this I get nothing on the field, if i had it on [b]type ="text"[/b] this works, but I want to create an edit page so I can populate the field with the existing field name, so if i do not want to update the info it will just post the old data field.Maybe Im missing something..Many thanks[/quote]i don't think it's possible to populate type file boxes... the best thing to do in that situation is display the contents above the empty box (if any is present) and when they attempt to upload yet another file, then replace the old data on the submit. Quote Link to comment Share on other sites More sharing options...
kolakube Posted May 8, 2006 Author Share Posted May 8, 2006 Thx for the quick response Gold, I had thought about that, but when I see scripts like 4imagegallery edit page I was think maybe there may be an easy way round this.as again thx for the reply :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.