Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: post

  1. #1
    New Coder
    Join Date
    Apr 2012
    Posts
    38
    Thanks
    7
    Thanked 0 Times in 0 Posts

    post

    Hi everyone,

    Im new to php and am trying to make something that I could enter some text into a text field and click submit it will show up on another page of my site so that anyone could see that post until I changed it. How would I do that?

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    From the highest view:
    • Accept input from form
    • Validate input
    • Insert input into database / filesystem storage


    Simple as that. The page is then viewed typically by an id to indicate which topic to view, or if its just on the homepage it can be embedded, likely with a query to pull the newest record.
    Take a look at a few tutorials here on google to see if these are what you are looking to do: http://www.google.ca/search?hl=en&q=....0.rR_LWsRJqTU

  • Users who have thanked Fou-Lu for this post:

    CSwrestler (04-25-2012)

  • #3
    New Coder
    Join Date
    Apr 2012
    Posts
    38
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Thanks it sounds simple but Im new to PHP. I just passed my javascript quiz at school so now my teacher wants me to start learning PHP so I am sure there will be few head aches

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    Quote Originally Posted by CSwrestler View Post
    Thanks it sounds simple but Im new to PHP. I just passed my javascript quiz at school so now my teacher wants me to start learning PHP so I am sure there will be few head aches
    Yes there will be. The languages are both C based languages so the syntax is similar, but what they were designed to do is completely different. Your processing language on the server has to do all the work. The javascript can be used exclusively to limit issues before it hits the server. So if you have an empty text input, the JS can throw an alert saying it has to be filled out. But the server side language still has to check if it has been and react accordingly.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •