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 Quote Link to comment 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']); ?> Quote Link to comment 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 Quote Link to comment 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 --> 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.