Newbie: how to pass between 2 fields on 2 pages

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
ahem
Forum Newbie
Posts: 1
Joined: Tue Jan 17, 2006 1:07 pm

Newbie: how to pass between 2 fields on 2 pages

Post by ahem »

Hello! I'm fairly new to PHP. I had this particular problem that bothers me for the school's real world project. Unfortunately, I can't find any tutors or lecturers that is expert of PHP.
This problem is what my client requested.

assume 2 textboxes in test1.php (in HTML design view, not PHP code or HTML code)
* textbox1 has value 'test' inside it
* textbox2 is empty

then there is a link to open a new page(popup), let say test2.php, which contains a textbox(textbox3) and a button(button1).
when the textbox3 is filled and button1 is submitted, then textbox2 will be filled with the value from textbox3. But the value in textbox1 should still be there.

If anyone kindly to help me with this problem in PHP code, I'll really appreciate it. I really confuse, because what i'm thinking is how to pass the value without reload test1.php, so that the value in textbox1 is still there.

Thank you. :o
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

store the value of input1 in a session,keep it passing it throuth the URL..take your pick :-D
Post Reply