How would I do this? menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    Mophatt's Avatar Private
    Reputation
    1
    Join Date
    Sep 2014
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How would I do this?

    How would I make function like on pastebin where you can post things and also view peoples posts

    How would I do this?
  2. #2
    Renyei's Avatar Contributor Hand of God
    Reputation
    112
    Join Date
    Sep 2008
    Posts
    127
    Thanks G/R
    0/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    If you're asking such a basic question I would assume you're not yet well versed enough to tackle such a thing; perhaps learn the basics first? That being said I will do my best to give you a base idea of how a website like Pastebin would be constructed (assuming that is what you mean).

    Basic site design would be done in HTML / CSS / JavaScript and whatever else you fancy to make it more awesome, I'm sure Google would be more than happy to help you learn how to create websites using those languages. With that out the way the more tricky part would be the server-side, which as you've not stated any desired language I will throw PHP out there as it's what everyone seems to be going to learn first these days.

    A client-side form would be used to submit the data to a PHP script which then stores the data in a database. Obviously the biggest rule of accepting data from a client applies here if you plan to handle code; never trust user input - sanitize it. There are hundreds of guides on the internet explaining how to sanitize user input from SQL injections and such, it would do you good to understand how they work!

    Showing what people have posted is simple, just use PHP once again to grab the posts out of the database and render them as HTML, all very simple stuff when you know the basics of each of the languages, I'm sure you can figure it out from here. Of course, this is a VERY base concept, and by that I mean -very- basic.

  3. #3
    Mophatt's Avatar Private
    Reputation
    1
    Join Date
    Sep 2014
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To be honest I was just asking for the code but thanks

  4. #4
    Renyei's Avatar Contributor Hand of God
    Reputation
    112
    Join Date
    Sep 2008
    Posts
    127
    Thanks G/R
    0/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Mophatt View Post
    To be honest I was just asking for the code but thanks
    I'm sorry, nobody around here is going to write a website for you. ^_^

  5. #5
    Mophatt's Avatar Private
    Reputation
    1
    Join Date
    Sep 2014
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not a website just the script for the posting but okay

  6. #6
    danresf's Avatar Private
    Reputation
    1
    Join Date
    Sep 2014
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All right.

    <?php

    $data['title'] = $_POST['title'];
    $data['code'] = $_POST['code'];

    $this->db->insert("posts", $data);

    echo 'Posting Done!';



    LOOOOL i hope you understand .. and you would have more sense on listening Reneyi

Similar Threads

  1. How would I do this?
    By Fireking300 in forum Programming
    Replies: 7
    Last Post: 02-23-2009, 01:58 AM
  2. How would I edit this mpq? And is it even possible?
    By Smipims in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 06-04-2008, 12:35 PM
  3. Replies: 22
    Last Post: 05-29-2008, 03:52 PM
  4. How would I fix this?
    By Tageran in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-20-2007, 03:45 PM
All times are GMT -5. The time now is 07:36 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search