Current location: Hot Scripts Forums » Programming Languages » PHP » Help making a message board...


Help making a message board...

Reply
  #1 (permalink)  
Old 04-21-04, 10:36 PM
imphasing imphasing is offline
New Member
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Help making a message board...

Okay, I have been studying PHP for exactly 5 hours now, and I just made my first script. A nice litte counter, that logs each hit into a text file. Now, onto my next project:

I would like to creat a homemade message board, you know, one of those nice simple things, that stack each message on top of eachother. I know how to write to a file, and things like that. (note, I'm not asking for someone to write out a script for me. I would actually appreciate it if you wouldn't. I need to learn this myself.) Here's the problem I'm having: I make a form, with a nice little text area, and submit button. Something like this:

<form>
<input type="textarea" name="text" >
<input type="submit" name="submit" value="Submit">
</form>

but when I tell PHP to access the variable "$text", it doesn't do anything. Am I missing something? Is there some command to store form information into a variable?

If anyone could help me, that would be great!
thanks,
Alex
Reply With Quote
  #2 (permalink)  
Old 04-21-04, 11:41 PM
Keith's Avatar
Keith Keith is offline
Community Liaison
 
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
Sounds like register_globals are off.
PHP Code:

<?php


// use:
echo $_POST['text'];

// or:
$text $_POST['text'];
echo 
$text;

?>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a message board cdoornew ASP.NET 2 11-14-04 11:38 PM
message board rainydayproject Job Offers & Assistance 2 04-22-04 04:28 AM
Message Board Similar to Boardhost AaronC Script Requests 1 01-26-04 03:41 PM
Offering message board support... Isaac16 Job Offers & Assistance 1 12-12-03 05:16 PM
Multiple board PHP message board mike taylor Script Requests 2 07-12-03 10:56 AM


All times are GMT -5. The time now is 10:28 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.