Need help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
McLain
Forum Newbie
Posts: 1
Joined: Wed Sep 23, 2009 5:48 am

Need help

Post by McLain »

Hi!
I'm new in php and a have a problem...
I want to create a site with two zones: one up and one down. The users on this site are typing text in the second area (down), press a submit button and i want that text to be written in first area (up). How do I do that? Any ideas?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Need help

Post by pickle »

Welcome to the boards!

Please take time to read the rules & examine where the best place for your question is. I've moved this thread to PHP - Code.

To answer your question, you would simply make the bottom zone a form, giving the textarea in it a unique name (let's say "down"). Then, in your php file when you're generating the PHP page, you check if $_POST has a "down" element, then output it inside the <textarea></textarea> tags for the upper zone.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply