/    Sign up×
Community /Pin to ProfileBookmark

PHP message script

For a news article website I require a debate function at the bottom of every article page. This needs to have a ‘Screen Name’ field, an ‘Age’ field, a ‘Profession’ field and a 150-word limit ‘Message’ field. When a user fills in these form elements and clicks on a submit button, I want all the entered information to be posted after the article on that page. (I assume this will also require a page refresh function). Is this possible with a PHP script? My knowledge of PHP is very limited so any help will be greatly received!

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@NogDogFeb 19.2006 — Yes, it's very possible with PHP, preferably along with a database (such as MySQL). It's not trivial - nor is it rocket science - but I suspect you can find many open-source scripts out there that you could use as-is or with a bit of tweaking. You might want to browse hotscripts.com, sourceforge.net, etc. for one that has the features you need.
Copy linkTweet thisAlerts:
@djvernauthorFeb 19.2006 — hm, I was hoping I could achieve it without a database - I don't need to store any usernames or other data. Just need a simple way of writing the entered information to the page..
Copy linkTweet thisAlerts:
@NogDogFeb 19.2006 — I did say "preferably" with regards to using a database. You [i]could[/i] just append the data to a text file, then include that file at the point where you want it displayed on your page. If I were designing it, though, I'd probably use a database due to the increased flexibility and functionality it would give me. (If I want to change what gets displayed in what order, I can just change one line of SQL code and not have to worry about changing the text file.)
Copy linkTweet thisAlerts:
@djvernauthorFeb 19.2006 — I see what you mean, but the text file option sounds ideal for the moment as the client wants something simple to begin with as this is for a new website. Any ideas where I could track down some script to make this work?
Copy linkTweet thisAlerts:
@NogDogFeb 19.2006 — Found this with about 30 seconds of searching/browsing at hotscripts.com:

http://www.hotscripts.com/Detailed/56021.html . I can't vouch for it, but it might be worth a look, and I just scratched the surface on that site. (I searched for "comment" under the PHP category.)
Copy linkTweet thisAlerts:
@djvernauthorFeb 19.2006 — Thanks for that! I'd already looked on hotscripts but not under that category. Think I'm on the right track with this now - many thanks for your help.
×

Success!

Help @djvern spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...