2 forms submit at same time

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
gzoley
Forum Newbie
Posts: 2
Joined: Fri Nov 25, 2011 3:09 am

2 forms submit at same time

Post by gzoley »

Hi All!

I'm new in PHP and here as well.
I have an urgent project, so i need a solution asap.
The situation is:
There are two pages: a phpBB3 and an electronic diary for a school.
My task is to make a login page, where the user can login to both page in same time.
The username and the password are the same in the forum and the diary.
But the forum login needs a "username" and "password" field to post and the diary needs an "userAccount" and "userPassword".
Please help me, i go crazy... :banghead: :crazy:
Hermit TL
Forum Commoner
Posts: 69
Joined: Mon Nov 21, 2011 12:16 am

Re: 2 forms submit at same time

Post by Hermit TL »

It would help greatly to see the code.

The simplest way I can think of to do (what I think you are doing) is to create a login page to enter the users' name and password, use php to get the data into the all the variables they need to be in, and copy and paste both login scripts so they both run. Though I'm sure this is probably the worst way to do this. It's the best I can do without seeing some code.

And welcome to the forums! I'm pretty new here too, but this place is great!
mikeashfield
Forum Contributor
Posts: 159
Joined: Sat Oct 22, 2011 10:50 am

Re: 2 forms submit at same time

Post by mikeashfield »

gzoley
Forum Newbie
Posts: 2
Joined: Fri Nov 25, 2011 3:09 am

Re: 2 forms submit at same time

Post by gzoley »

Thanks, I'll try.
Post Reply