adding php to articles
Posted: Sun Jun 17, 2007 11:15 pm
So I'm trying to add some php code to one of my articles so that people can sign up for a news letter. The problem is that serendipity tries to alter the code.
Does anyone know how to work around this problem?
I'm trying to add the follwoing:
<?php
print "<form action='$yourfilepath/sub.php' target ='_blank' method='post'>";
print "<center>E-mail: <input type='text' name='email' size='30'></center><br>";
?>
<?php
print "<center><input type='radio' name='choice' value='sub' checked> Subscribe ";
print "<input type='radio' name='choice' value='unsub'> Unsubscribe</center><br>";
?>
<?php
print "<center><input type='submit' name='submit' value='Subscribe Now!'></center></form>";
?>
Does anyone know how to work around this problem?
I'm trying to add the follwoing:
<?php
print "<form action='$yourfilepath/sub.php' target ='_blank' method='post'>";
print "<center>E-mail: <input type='text' name='email' size='30'></center><br>";
?>
<?php
print "<center><input type='radio' name='choice' value='sub' checked> Subscribe ";
print "<input type='radio' name='choice' value='unsub'> Unsubscribe</center><br>";
?>
<?php
print "<center><input type='submit' name='submit' value='Subscribe Now!'></center></form>";
?>