Page 1 of 1

2 forms submit at same time

Posted: Fri Nov 25, 2011 3:29 am
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:

Re: 2 forms submit at same time

Posted: Fri Nov 25, 2011 3:39 am
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!

Re: 2 forms submit at same time

Posted: Fri Nov 25, 2011 4:00 am
by mikeashfield

Re: 2 forms submit at same time

Posted: Fri Nov 25, 2011 9:34 am
by gzoley
Thanks, I'll try.