wernervantonder Posted July 9, 2007 Share Posted July 9, 2007 I would like to create something similar to facebook idea. I would like the user to submit a photo and it must display upon next page refresh. i got an idea how to do text but the picture i dont. do the post it to a public folder on the webserver of do i store it in mysql dbase? how would i do this? Thank you very much Werner Link to comment https://forums.phpfreaks.com/topic/59056-submit-photos/ Share on other sites More sharing options...
Lumio Posted July 9, 2007 Share Posted July 9, 2007 Use header(). When everything is fine do <?php header('Location: '.$_SERVER['PHP_SELF']); ?> Link to comment https://forums.phpfreaks.com/topic/59056-submit-photos/#findComment-293167 Share on other sites More sharing options...
wernervantonder Posted July 9, 2007 Author Share Posted July 9, 2007 Sorry please explian to me what you mean. Thanks Werner Link to comment https://forums.phpfreaks.com/topic/59056-submit-photos/#findComment-293170 Share on other sites More sharing options...
Lumio Posted July 9, 2007 Share Posted July 9, 2007 Try it like that: <?php if (isset($_POST['sent'])) { if (mysql_query('YOUR QUERY')) header('Location: '.$_SERVER['PHP_SELF']); } //some code ?> <!-- some html --> Link to comment https://forums.phpfreaks.com/topic/59056-submit-photos/#findComment-293199 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.