dswqw66280 2016-06-23 16:30
浏览 36

在文档加载上登录表单模式窗口

How do I add a log in/sign up modal window appearing when the page loads? I want a simple solution. I have looked online and could not make it work. Something similar to Pinterest log in form. I want everything to be faded behind with dark overlay and Show log in form that will react to user input when they fill in the details.


OK I added the modal window and then script that gets rid of the two divs overlay and login form.

I can not do log out now. it says headers already sent on redirect function. the result is here http://www.bizclub.co.nf

   <?php
    ob_start();
    //session_start(); 

    if(isset($_GET['lang'])) {
    $lang = $_GET['lang'];
    } else {
    $lang = 'geo';
    }

    //require_once('includes/session.php');
    require_once('classes/class.user.php');
    $user = new USER('');

    if($user->is_loggedin()!="")
    {   
        $user_logout->redirect('index.php');

    }
    if(isset($_GET['logout']) && $_GET['logout']=="true")
    {   $user->Logout();
    echo "YOU ARE LOGGED OUT";
        $user->redirect('index.php');
    }
    ?>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 测距传感器数据手册i2c
    • ¥15 RPA正常跑,cmd输入cookies跑不出来
    • ¥15 求帮我调试一下freefem代码
    • ¥15 matlab代码解决,怎么运行
    • ¥15 R语言Rstudio突然无法启动
    • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
    • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
    • ¥15 用windows做服务的同志有吗
    • ¥60 求一个简单的网页(标签-安全|关键词-上传)
    • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法