Jump to content


Photo

Client Upload.

php client upload site

Best Answer trq, 15 June 2013 - 11:31 PM

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 Go to the full post


  • Please log in to reply
2 replies to this topic

#1 Hazukiy

Hazukiy

    Advanced Member

  • Members
  • PipPipPip
  • 125 posts
  • LocationEngland
  • Age:19

Posted 15 June 2013 - 08:43 PM

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.



#2 trq

trq

    Advanced Member

  • Administrators
  • 30,982 posts
  • LocationSydney, Australia.

Posted 15 June 2013 - 11:31 PM   Best Answer

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

http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#3 Hazukiy

Hazukiy

    Advanced Member

  • Members
  • PipPipPip
  • 125 posts
  • LocationEngland
  • Age:19

Posted 16 June 2013 - 11:56 PM

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 ;)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com