Hi,
I am creating a website in php,i want my login page with only username and password,i don't want to display any default bars on the top of the form like menu bar,tool bar etc..I don't know how to remove this in php,please help me out with correct coding


Regards,
Vidhya.P

Well php itself can launch the window since php deals with the server side items while other languages such as javascript and flash deal with the client/user side items. So that makes it impossible for php itself to make a popup but you can make php send to the browser javascript code to launch up a popup. Below is an example of the javascript and html required:

<script language="JavaScript">
function loadpage(var1) {
window.open(var1,'TheNewpop','fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}
</script>

<CENTER><FORM>
<input type="button" VALUE="click me!" onClick="loadpage('http://www.google.com.au/');">
</FORM>
</CENTER>

And there is a tutorial about it at http://htmlgoodies.earthweb.com/beyond/javascript/article.php/3471181

Hi,
I want my first form itself with no bars,my code is as follows,

<body bottommargin="0" onLoad="loadpage('http://localhost/org/index.php');">
<script language="JavaScript">
function loadpage(var1) 
{
window.open(var1,'TheNewpop','fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}
</script>

Hi,
I want my first form itself with no bars,my code is as follows,

<body bottommargin="0" onLoad="loadpage('http://localhost/org/index.php');">
<script language="JavaScript">
function loadpage(var1) 
{
window.open(var1,'TheNewpop','fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}
</script>

That onload= code will not work due to the advanced popup blocker filters that every browser has today. To be able to use the function, you need to link to the page with that function or make the user click something. Automated events will just be blocked by the browser unfortunately.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.