开发者

eclipse is not redirecting me to next page [duplicate]

This question already has answers here: Closed 10 years ago.

Possible Duplicate:

Not able to redirect to next page

My php code is as follows:

Home.php

<html>
<form name="Form1" action="Welcome.php" method="post">
    Name : 开发者_运维技巧<input type="text" name="txtName">
    Phone Number : <input type="text" name="txtPhNo">
    <input type="submit" name="SubmitIt" value="Submit It">     
</form>
</html>

Welcome.php

<?php
    ob_start(); 
    session_start();    
    if(!($_SESSION['UName']))
    {
        $_SESSION['UName']=$_POST['txtName'];
    }
?>
<html>
<body>
Welcome <?php   
    if(isset($_SESSION['UName']))
    {
        echo  $_SESSION['UName'];
    }               
    ?>
</body>
</html>

Output should be..... Page should redirect to Welcome.php.

But its showing only the blank page and the string Welcome.php.

In browser its working without any issue. But in Eclipse its not.

Thanks in advance.


"Browser Output" View is not a browser. Output is rendered as like as a browser on the view, but you're not able to use navigation(link,form,...) on it.
Use Internal web browser or External web browser.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜