Results 1 to 3 of 3

Thread: rediraction

  1. #1
    Join Date
    Jun 2003


    how i can get the particular htmls when user submit the login page i mena to say redirect if users are apple,mango then page,html else mypage,html

    <td align="center">
    <h1><span class="u">u s e r :</span><br />
    <input size="20" maxlength="50" type="text" name="account" value="" class="big" /></h1>
    <h1><span class="u">p a s s w o r d :</span><br />
    <input size="20" maxlength="50" type="password" name="password" value="" class="big" /></h1>
    <p><input type="submit" value="OK" class="biggray" /></p>
    and then for internal users it will get first figure else for external it will get fig.2

    $query=select user from t_emp where intern='true'; //apple,mango
    arun krishnan

  2. #2
    Join Date
    Dec 2002
    High on life
    As I said in your other post, you first need a <form> tag. Once you have that, set the action to a PHP page, and then you can either check if there input is true via a conditional statement, or with a more advanced database query, as it appears you are pulling values from a DB...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  3. #3
    Join Date
    Jun 2003
    <? if (!$session->login) send_location_die('login.phtml?error=true');
    list($user) = once_query_array("SELECT user FROM t_user WHERE intern='t'");
    if ($user== true) {
    $loc = "mypage.php";
    else {
    $loc = "default.php";
    ?> still its not working as i created a cloumn called intern
    and if its value is 't' then for internal and for external its 'f'
    so now result is its showing always mypage.php for external also how to get default.php

    my table is like that
    user pwd intern
    mango mgo t
    apple app t
    citrus cit f
    coco cp f
    arun krishnan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center