PDA

View Full Version : Forum Login



iwjp
May 12th, 2005, 08:44 AM
Hello.

Basically I want to use a flash form, similar to the one used in this tutorial:

flash email form (http://www.kirupa.com/developer/actionscript/flash_php_email.htm)

Except instead of sending an email I want it to log the user onto my forum and open it up in a new window.

I was just wondering how I could go about it?

Any guidance would be great,

thanks iain.

(p.s. it a phpbb2 forum)

Digitalosophy
May 12th, 2005, 09:32 AM
http://www.kirupa.com/developer/actionscript/authentication.htm

CyanBlue
May 12th, 2005, 10:29 AM
That'll require good amount of knowledge on how phpBB handles login process as well... (You mean phpBB not phpBB2, right???) Flash is merely a shell that works as a frontend and your login logic should be implemented in the backend...

iwjp
May 14th, 2005, 10:35 AM
Hey there

It is a phpBB forum but version 2. It already has a php based form, but i want to use flash to integrate the look with some other flash components I have.

The script for the php form is this



<form method="post" action="login.php">
Username:
<input class="singline" type="text" name="username" size="10" />
&nbsp;&nbsp;&nbsp password:
<input class="singline" type="password" name="password" size="10" maxlength="32" />
<br />Log me on automatically each visit
<input type="checkbox" name="autologin" />
&nbsp;&nbsp;&nbsp;
<input type="submit" class="button" name="login" value="Log in" />
</form>


This lead me to believe that I could simply post to login.php
the variables password and username as you would the message
for the email form.

I've tried this, but it seems not to work, I presuming its more
complicated than that.

Any more help would gratefully be received.

Thanks again!

CyanBlue
May 14th, 2005, 02:57 PM
Not only that, you'd also need to check out the login.php to see how it is handling the process and such... There's something else to it if your trial did not work...