Please help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
satelrom
Forum Newbie
Posts: 1
Joined: Fri May 29, 2009 9:56 pm

Please help

Post by satelrom »

Hi there
I have the following php code:

Code: Select all

 
echo "<tr><td valign='top' style='padding-top:4px;'><font class='listingtitle'>Lyrics:</font></td>
      <td>
<form method='post' action='submit-lyric.html'><input type='hidden' name='submitme' value='yes'><td style='padding:0px;'><br>
                
                <table cellpadding='5' cellspacing='0' border='0' align='left'>
                <tr><td width='80'><b>Your Email:</b></td><td><input type='text' name='youremail' class='form' style='width:250px;' value='<?php echo stripslashes($youremail);?>'></td></tr>
 
 
and instead to get an empty input box is showing me inside the following:
<?php echo stripslashes();?>
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: Please help

Post by mikemike »

I think you should read some starter tutorials like the one on PHP.net, this will teach you about how the PHP engine works and show you how to escape strings.

As a bit of a hint: you need to escape the echo'd string and call the function. You are trying to initiate a block of PHP code when you're already inside it, you can read more about strings on the php.net site - link. Although the link I gave is quite detailed youcan find what you're after just inside the examples halfway down the page. I do suggest the PHP.net tutorial first though.
Post Reply