cip6791
Nov 8th 2007, 10:12 pm
I would like to call a javascript using php using a textarea and a submit button.
index.php
<form action="ad.php" method="post">
<p>
<textarea name="ad" rows="4" cols="45"></textarea>
</p>
<p><input type="submit" value="Update" /></p>
</form>
-------------------------------------------------------
ad.php
<?php
$ad = $_POST["ad"];
//$temp = "<b>fds</b>";
echo ($ad);
?>
when i paste a little javascript, let s say my google adsense script ... the php won t display it. Why? Can anybody help?
Thanks
index.php
<form action="ad.php" method="post">
<p>
<textarea name="ad" rows="4" cols="45"></textarea>
</p>
<p><input type="submit" value="Update" /></p>
</form>
-------------------------------------------------------
ad.php
<?php
$ad = $_POST["ad"];
//$temp = "<b>fds</b>";
echo ($ad);
?>
when i paste a little javascript, let s say my google adsense script ... the php won t display it. Why? Can anybody help?
Thanks