•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 427,359 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,074 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 285 | Replies: 1
![]() |
•
•
Join Date: Dec 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
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>.
<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>.
•
•
Join Date: Dec 2007
Posts: 75
Reputation:
Rep Power: 1
Solved Threads: 10
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
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>.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the PHP Forum
- Previous Thread: Question about creating Consent Forms
- Next Thread: Prevent duplicate entry


Linear Mode