Hazukiy Posted June 16, 2013 Share Posted June 16, 2013 Hi, there's a site I saw which allows it's users to upload a link that will be implemented to the site. Now I was wondering but how would you do this in PHP? To elaborate I would like it so that the user can upload a link and it'll implement it on the site through php? So for example I want to add a link to the site WITHOUT having any kind of login required, so something like "www.google.com" and after it'll appear on the site under a list. How would I make it so it does this function? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/279218-client-upload/ Share on other sites More sharing options...
Solution trq Posted June 16, 2013 Solution Share Posted June 16, 2013 This is quite simple. A user submits a form to a php script that saves the forms contents (the link) to a database. You then have another script that queries that database and displays all this data (links). If you don't know how work with forms, insert data into a database or how to read data out of a database I suggest you start here and here. In fact that entire book is a good read for beginners. http://www.tuxradar.com/practicalphp Quote Link to comment https://forums.phpfreaks.com/topic/279218-client-upload/#findComment-1436209 Share on other sites More sharing options...
Hazukiy Posted June 17, 2013 Author Share Posted June 17, 2013 This is quite simple. A user submits a form to a php script that saves the forms contents (the link) to a database. You then have another script that queries that database and displays all this data (links). If you don't know how work with forms, insert data into a database or how to read data out of a database I suggest you start here and here. In fact that entire book is a good read for beginners. http://www.tuxradar.com/practicalphp Thanks a lot for the links, I'll get started on reading these Quote Link to comment https://forums.phpfreaks.com/topic/279218-client-upload/#findComment-1436324 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.