i am new to php nd i just wanted to know whether we can perform both frameset tag nd form tag at a time in php.my program is in given below for a login form:

<html>
<head></head>
<frameset rows="25%,*">
<frame name="top"src="f1.html">
<frameset cols="25%,*">
<frame name="left"src="f2.html">
</frameset>
</frameset>
<body>
<body bgcolor="pink">
<form method="get" action="welcome.php">
<b>loginID</b><input type="text" name="loginID" size="30">
<br>
<br>
<b>password</b><input type="text" name="password" size="30">
<br>
<br>
already a user
<br>
<a href=f3.php>new user register</a>
</form>
</body>
</html>.

PHP will not interfere with the HTML because PHP is interpreted by the server, while HTML is interpreted by the Browser. The browser does not see the PHP code.

That aside, you can use frames in the sense that the browser will not forbid you from using it. However, it will not behave as you expect it. What you need to use is the iframe instead of the <frameset><frame></frameset>


With the setup that you have <frameset>...</frameset>, the <form> would need to be in one of the framed pages (f1.html or f2.html). Most likely you are looking for a setup as shown below

<html>
<head></head>
<body bgcolor="pink">
<iframe name="top" width="25%" src="f1.html"/>
<iframe name="left" width="75%" src="f2.html"/>
<form method="get" action="welcome.php">
<b>loginID</b><input type="text" name="loginID" size="30">
<br>
<br>
<b>password</b><input type="text" name="password" size="30">
<br>
<br>
already a user
<br>
<a href=f3.php>new user register</a>
</form>
</body>
</html>.
This article has been dead for over six months. Start a new discussion instead.