vicodin Posted January 29, 2008 Share Posted January 29, 2008 Quick question... Can i have an a form that will post information and have it upload with in the same form? Example: Post a comment for a picture and also upload the picture with in the same form. Quote Link to comment https://forums.phpfreaks.com/topic/88435-solved-php-upload/ Share on other sites More sharing options...
themistral Posted January 29, 2008 Share Posted January 29, 2008 Yep - you need to make sure you are using the correct form type <form name="" method="" enctype="multipart/form-data" action=""> You then need to write a script to upload your file and insert your comments to the database which you would set as the action. HTH Quote Link to comment https://forums.phpfreaks.com/topic/88435-solved-php-upload/#findComment-452614 Share on other sites More sharing options...
vicodin Posted January 29, 2008 Author Share Posted January 29, 2008 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/88435-solved-php-upload/#findComment-452616 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.