mindblown Posted February 7, 2013 Share Posted February 7, 2013 I'm looking to create a form that will upload a file either picture or video and embed it in another page from a template. I'm not looking for someone to give me the code just sort of the way to go about it. Would it be inside a <div> or an <iframe> and what would create the blank plage a target_blank action or something? Any help would really be appreciate. Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/274168-php-new-page/ Share on other sites More sharing options...
mindblown Posted February 7, 2013 Author Share Posted February 7, 2013 anyone? Quote Link to comment https://forums.phpfreaks.com/topic/274168-php-new-page/#findComment-1410832 Share on other sites More sharing options...
Kingy Posted February 7, 2013 Share Posted February 7, 2013 (edited) I don't really understand what exactly you're asking. So you're wanting a new page for every single thing that is uploaded? Would it not be easier to possibly store the filename/filetype in a database and then retrieve it when the time comes? That way you would only need a couple of pages max. 1 to upload and 1 to display. Actually you might not even need a database. You could pass through the filename as a GET or POST variable and grab it that way. Take for example: http://www.examplesi...?file=image.jpg and then on the display page: <?php $filename = $_GET['file']; ?> <img src="images/<?php echo $filename; ?>" /> Edited February 7, 2013 by Kingy Quote Link to comment https://forums.phpfreaks.com/topic/274168-php-new-page/#findComment-1410850 Share on other sites More sharing options...
mindblown Posted February 7, 2013 Author Share Posted February 7, 2013 (edited) well i want to create a feed where everything in the feed would be embedded in its own location. Maybe I'm wrong in calling it its own page but i what a seperate url for everything uploaded. Any suggestions? Edited February 7, 2013 by mindblown Quote Link to comment https://forums.phpfreaks.com/topic/274168-php-new-page/#findComment-1410855 Share on other sites More sharing options...
Jessica Posted February 8, 2013 Share Posted February 8, 2013 You need to read some basic PHP tutorials. Quote Link to comment https://forums.phpfreaks.com/topic/274168-php-new-page/#findComment-1410891 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.