Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

Php Problem


ghost's Avatar
0 0

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.

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

ghost's Avatar
0 0

Disable Smileys plx


ghost's Avatar
0 0

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….


ghost's Avatar
0 0

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…..


ghost's Avatar
0 0

thanxxxxx man the script worked….. as i wanted thanx a lot:):):):):):):):)

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

$title = $_REQUEST[&#39;title&#39;];
$message = $_REQUEST[&#39;message&#39;];
$file=&quot;$title.htm&quot;;
$Handle = fopen($file, &#39;a&#39;);
$Data1 = &quot;$message&quot;;
fwrite($Handle, $Data1);
fclose($Handle);
echo &quot;Data written for link $title&quot;;
?&gt;

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

the out put i get is markuphttp://the-web-site-name/&#92;&quot;http://www.w3schools.com&#92;&quot;

plzzz helm for this…


ghost's Avatar
0 0

plzzzzzzzz help me…