...

View Full Version : post



CSwrestler
04-25-2012, 03:37 PM
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?

Fou-Lu
04-25-2012, 03:44 PM
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: www.google.ca/search?hl=en&q=php+simple+news+system+tutorial&oq=php+simple+news+system+tutorial&aq=f&aqi=&aql=&gs_nf=1&gs_l=serp.3...9077.10004.0.10145.9.9.1.0.0.2.328.918.3j1j1j1.6.0.rR_LWsRJqTU

CSwrestler
04-25-2012, 03:58 PM
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

Fou-Lu
04-25-2012, 04:40 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum