Follow us on Twitter!
Hacking isn't just Computers & Exploits. It's a Philosophy. - Mr_Cheese
Sunday, April 20, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 24
Guests Online: 23
Members Online: 1

Registered Members: 82843
Newest Member: hx47
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

Php Problem


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-02-08 15:25
This is my Php Script i have made this script for my use but there is an error can any body help me

the problem is at the html tag
<a href="$title" _base_target="frame3">$title </a><br>
can any one help me.

Code

<?php
$nav1="nav1.htm"
$nav2="nav2.htm"
$title = $_REQUEST['title'];
$message = $_REQUEST['message'];
$type = $_REQUEST['type'];
$today = date("F j, Y, g:i a");
if($type == "Link")
{
 $Handle = fopen($nav2, 'a');
 $Data1 = " <a href="$title" _base_target="frame3">$title </a><br>";
 fwrite($Handle, $nav2);
 fclose($Handle);
 echo "Data written for link $title";
}
elseif($type == "Topic")
{
 $Handle = fopen($nav1, 'a');
 $Data = " <a href="$title" base="" target="frame3">$title </a><br>";
 fwrite($Handle, $nav1);
 fclose($Handle);
 echo "Data written to Topic $title";
}
else
 echo "No Match Found";
?>




Edited by on 22-02-08 16:26
Author

RE: Php Problem


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-02-08 15:59
Disable Smileys plx
Author

RE: Php Problem


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-02-08 16:27
kiyoura wrote:
i see your problem..when using php you must echo html/javascript for example

<?php
echo "<form method='get' action=''>";
echo "<input type='text' name='name' />
?>
notice in the "" you must use '' or it wont work..hope this helps you


i got it but how to enter the tag data in the file....
Author

RE: Php Problem


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-02-08 16:40
kiyoura wrote:
make sure the file can parse html...save the file as .html,.htm or .php that way when you use the fwrite function it will write the tags and the tags


i didnt get u ... can u make the chane in the orignal code and post it.....
Author

RE: Php Problem


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 23-02-08 10:23
thanxxxxx man the script worked..... as i wanted thanx a lot:):):):):):):):)

how evre there is an other problem plz help me in this script

Code
<?php
$title = $_REQUEST['title'];
$message = $_REQUEST['message'];
$file="$title.htm";
$Handle = fopen($file, 'a');
$Data1 = "$message";
fwrite($Handle, $Data1);
fclose($Handle);
echo "Data written for link $title";
?>





if there is html tag for eg <a href="http://www.w3schools.com">
W3Schools</a>

the out put i get is
Code
http://the-web-site-name/\"http://www.w3schools.com\"




plzzz helm for this...

Edited by on 23-02-08 14:20
Author

RE: Php Problem


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 26-02-08 08:21
plzzzzzzzz help me...