Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Need help with login to php forum from html web page
Old 10-14-2008, 11:00 AM Need help with login to php forum from html web page
Junior Talker

Posts: 3
Trades: 0
ok what i wanna do it login to my php forum from a html web site via hyperlink, i'm not very good at coding this stuff, mostly coppy n paste, hehehe, but here is wut i got
www.desa2k.com/forum is the fourm page is that helps
i think i want the link to be something like
desa2k.com/forum/index.php&action="login"&username="user"&password= "pass"

html code for login
Code:
<form id="login" action="#" method="post">
        
                            <div id="username">
                                <label for="username-field">User: </label>
                                <input id="username-field" type="text" name="username" title="Username" value="" />
                            </div>
                            
                            <div id="password">
                                <label for="password-field">Pass: </label>
                                <input id="password-field" type="password" name="password" title="Password" value="" />
                            </div>
                          
                                <div><input id="submit-button" type="submit" name="submit" value="Login" /></div>
                                <div><input id="reset" type="reset" name="reset" value="Reset" /></div>
                                </form>
here is the login code from my php forum

Code:
<form action="{S_LOGIN_ACTION}" method="post" id="login">
<div class="panel">
    <div class="inner"><span class="corners-top"><span></span></span>

    <div class="content">
        <h2><!-- IF LOGIN_EXPLAIN -->{LOGIN_EXPLAIN}<!-- ELSE -->{L_LOGIN}<!-- ENDIF --></h2>
        
        <fieldset <!-- IF not S_CONFIRM_CODE -->class="fields1"<!-- ELSE -->class="fields2"<!-- ENDIF -->>
        <!-- IF LOGIN_ERROR --><div class="error">{LOGIN_ERROR}</div><!-- ENDIF -->
        <dl>
            <dt><label for="{USERNAME_CREDENTIAL}">{L_USERNAME}:</label></dt>
            <dd><input type="text" tabindex="1" name="{USERNAME_CREDENTIAL}" id="{USERNAME_CREDENTIAL}" size="25" value="{USERNAME}" class="inputbox autowidth" /></dd>
        </dl>
        <dl>
            <dt><label for="{PASSWORD_CREDENTIAL}">{L_PASSWORD}:</label></dt>
            <dd><input type="password" tabindex="2" id="{PASSWORD_CREDENTIAL}" name="{PASSWORD_CREDENTIAL}" size="25" class="inputbox autowidth" /></dd>
            <!-- IF S_DISPLAY_FULL_LOGIN and (U_SEND_PASSWORD or U_RESEND_ACTIVATION) -->
                <!-- IF U_SEND_PASSWORD --><dd><a href="{U_SEND_PASSWORD}">{L_FORGOT_PASS}</a></dd><!-- ENDIF -->
                <!-- IF U_RESEND_ACTIVATION --><dd><a href="{U_RESEND_ACTIVATION}">{L_RESEND_ACTIVATION}</a></dd><!-- ENDIF -->
            <!-- ENDIF -->
        </dl>
        
        <!-- IF S_CONFIRM_CODE -->
        <dl>
            <dt><label for="confirm_code">{L_CONFIRM_CODE}:</label><br /><span>{L_CONFIRM_CODE_EXPLAIN}</span></dt>
                <dd><input type="hidden" name="confirm_id" value="{CONFIRM_ID}" />{CONFIRM_IMAGE}</dd>
                <dd><input type="text" name="confirm_code" id="confirm_code" size="8" maxlength="8" tabindex="3" class="inputbox narrow" title="{L_CONFIRM_CODE}" /></dd>
        </dl>
        <!-- ENDIF -->
        
        <!-- IF S_DISPLAY_FULL_LOGIN -->
        <dl>
            <!-- IF S_AUTOLOGIN_ENABLED --><dd><label for="autologin"><input type="checkbox" name="autologin" id="autologin" tabindex="4" /> {L_LOG_ME_IN}</label></dd><!-- ENDIF -->
            <dd><label for="viewonline"><input type="checkbox" name="viewonline" id="viewonline" tabindex="5" /> {L_HIDE_ME}</label></dd>
        </dl>
        <!-- ENDIF -->
        <dl>
            <dt>&nbsp;</dt>
            <dd>{S_HIDDEN_FIELDS}<input type="submit" name="login" tabindex="6" value="{L_LOGIN}" class="button1" /></dd>
        </dl>
    
        </fieldset>
    </div>
    <span class="corners-bottom"><span></span></span></div>
</div>

<!-- IF not S_ADMIN_AUTH and S_REGISTER_ENABLED -->
    <div class="panel">
        <div class="inner"><span class="corners-top"><span></span></span>

        <div class="content">
            <h3>{L_REGISTER}</h3>
            <p>{L_LOGIN_INFO}</p>
            <p><strong><a href="{U_TERMS_USE}">{L_TERMS_USE}</a> | <a href="{U_PRIVACY}">{L_PRIVACY}</a></strong></p>
            <hr class="dashed" />
            <p><a href="{U_REGISTER}" class="button2">{L_REGISTER}</a></p>
        </div>

        <span class="corners-bottom"><span></span></span></div>
    </div>
<!-- ENDIF -->

</form>
desa is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-14-2008, 12:47 PM Re: Need help with login to php forum from html web page
Red_X_'s Avatar
Extreme Talker

Posts: 158
Location: Houston
Trades: 0
1st: You don't want your link to look like that :P not secure.

2nd. Just call the phpBB login scripts.
__________________
"Good News Everyone, by reading this your hearing my voice."
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
Old 10-14-2008, 03:29 PM Re: Need help with login to php forum from html web page
Junior Talker

Posts: 3
Trades: 0
Quote:
Originally Posted by Red_X_ View Post
1st: You don't want your link to look like that :P not secure.

2nd. Just call the phpBB login scripts.
how do i do that? like i said, i'ma noob, so calling the scrip is Chinese to me

and 1 more thing i forgot to mention, the main site will be desa2k.com, and the forum will be desa2k.com/forum
thats y i figured to do it via hyperlink would be easiest

Last edited by desa; 10-14-2008 at 03:36 PM..
desa is offline
Reply With Quote
View Public Profile
 
Old 10-15-2008, 09:54 AM Re: Need help with login to php forum from html web page
Novice Talker

Posts: 14
Name: Ben
Trades: 0
Submit to the script that already in place!
__________________

Please login or register to view this content. Registration is FREE
ForumFiller is offline
Reply With Quote
View Public Profile
 
Old 10-16-2008, 04:19 AM Re: Need help with login to php forum from html web page
Junior Talker

Posts: 3
Trades: 0
ok i got it workin, thanks alot guys
desa is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need help with login to php forum from html web page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21500 seconds with 12 queries