Page 1 of 1

Need help

Posted: Wed Sep 23, 2009 5:53 am
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?

Re: Need help

Posted: Wed Sep 23, 2009 10:22 am
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.