Why UI Text Box And Button Not Display When iFrame Present

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
UniqueIdeaMan
Forum Contributor
Posts: 197
Joined: Wed Jan 18, 2017 3:43 pm

Why UI Text Box And Button Not Display When iFrame Present

Post by UniqueIdeaMan »

Php Guys,

Why does not the UI Text Box and "Browse!" button get displayed below the iframe ?

Code: Select all

			<iframe src="http://cnet.com"</iframe>
			
			<form method="post" action="">	
			<div class="form-group">
			<label for ="url">Url: </label>
			<input type="text" name="url_to_browse"><br>
			<button type="submit" class="btn btn-default" name="browse">Browse!</button>
			</div>
                        </form>

Get rid of the iframe code and the button gets displayed! What a mystery!

Code: Select all

			
			<form method="post" action="">	
			<div class="form-group">
			<label for ="url">Url: </label>
			<input type="text" name="url_to_browse"><br>
			<button type="submit" class="btn btn-default" name="browse">Browse!</button>
			</div>
                        </form>
UniqueIdeaMan
Forum Contributor
Posts: 197
Joined: Wed Jan 18, 2017 3:43 pm

Re: Why UI Text Box And Button Not Display When iFrame Prese

Post by UniqueIdeaMan »

Closing tag was missing! Got pointed this out!
<iframe src="http://cnet.com"></iframe>
Silly NotePad++ did not show error.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Why UI Text Box And Button Not Display When iFrame Prese

Post by Celauran »

UniqueIdeaMan wrote:Silly NotePad++ did not show error.
Might be worth checking out Sublime Text, VS Code, or even PHPStorm.
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: Why UI Text Box And Button Not Display When iFrame Prese

Post by Vegan »

I use Visual Studio and it can highlight PHP code as nicely as C++ or C#
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
roaminpizza
Forum Newbie
Posts: 2
Joined: Fri Sep 29, 2017 2:51 am

Re: Why UI Text Box And Button Not Display When iFrame Prese

Post by roaminpizza »

This plugin needs to be distinguished from the IFrame Dialog Field plugin.
UniqueIdeaMan
Forum Contributor
Posts: 197
Joined: Wed Jan 18, 2017 3:43 pm

Re: Why UI Text Box And Button Not Display When iFrame Prese

Post by UniqueIdeaMan »

Celauran wrote:
UniqueIdeaMan wrote:Silly NotePad++ did not show error.
Might be worth checking out Sublime Text, VS Code, or even PHPStorm.
They are editors or IDE ? Getting suggested to get the IDEs. They say free ones available. Which ones you recommend (free ones) ?
On the other hand, I will have to research what an IDE is! Lol!
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Why UI Text Box And Button Not Display When iFrame Prese

Post by Celauran »

Sublime and VS Code are editors. PHPStorm is an IDE. Of those, only VS Code is free. If you want a free IDE, check out NetBeans. It’s not nearly as good as PHPStorm, but it’s not bad.
Post Reply