View unanswered posts | View active topics It is currently Sun Dec 17, 2017 12:34 pm



Reply to topic  [ 1 post ] 
 Help me "to experts only!!!" 
Author Message
Junior Member

Joined: Tue Jun 22, 2010 10:42 am
Posts: 1
Post Help me "to experts only!!!"
Hi!
my website is about a html code that extract a code in one iframe [color=blue]"iframe1" [/color]and execute the result in onther iframe [color=blue]"iframe2"[/color]
In the first i had an iframe box that my txt files excute in :
my iframe code :
[code]<iframe name="iframe1" width="320" height="320" src="" frameborder="yes" scrolling="yes"> </iframe>[/code]

and this is my txt files page:
[code]<div>
<ul>
<li><a href="file01.txt" name = "file01.txt" target="iframe1">Getting started </a><a href="file01.html" target="iframe2">(file01)</a></li>
<li><a href="file02.txt" name = "file02.txt" target="iframe1">Getting started </a><a href="file02.html" target="iframe2">(file02)</a></li>
<li><a href="file03.txt" name = "file03.txt" target="iframe1">Getting started </a><a href="file03.html" target="iframe2">(file03)</a></li>
</ul>
</div>[/code]

and its work perfectly. :)

[size=14pt][color=red]
Then i changed my iframe1 to a textarea box to let the user to modify the code a"txtfile". [b]But now i cant extract the code a"txt file" in a textarea like when i was extracted in iframe [/b][/size]

my textarea code:
[code]
<form action="showcode.php" method="post" name="form" target="iframe2">
<textarea name="textareaa" cols="32" rows="16">
</textarea>
<input type="submit" value="Save" />
</form>
[/code]

showcode.php
[php]<?php
$test=$_POST['textareaa'];
echo($test);
?>[/php]

[color=brown]i tried to modify the target of my txt files from "iframe1" to "textareaa" [/color]
[code]<div>
<ul>
<li><a href="file01.txt" name = "file01.txt" target="textareaa">Getting started </a><a href="file01.html" target="iframe2">(file01)</a></li>
<li><a href="file02.txt" name = "file02.txt" target="textareaa">Getting started </a><a href="file02.html" target="iframe2">(file02)</a></li>
<li><a href="file03.txt" name = "file03.txt" target="textareaa">Getting started </a><a href="file03.html" target="iframe2">(file03)</a></li>
</ul>
</div>[/code]

but its not work.. :-\
its open the txt file in a new page not in the textarea box >:(

SO any good programmer can SOLVE my problem ??


Tue Jun 22, 2010 12:40 pm
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.