User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Dec 2007
Posts: 2
Reputation: babbi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
babbi babbi is offline Offline
Newbie Poster

hi

  #1  
Dec 22nd, 2007
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>.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 75
Reputation: hielo is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 10
hielo hielo is offline Offline
Junior Poster in Training

Re: hi

  #2  
Dec 22nd, 2007
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>. 
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 3:32 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC