Need help in arranging php quotation.

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
truce enough
Forum Newbie
Posts: 8
Joined: Fri Sep 02, 2011 12:53 am

Need help in arranging php quotation.

Post by truce enough »

Hi,

Code: Select all

<?php
	
echo "<table class='commentbox' border='0'>";
echo "<tr>";
echo "<td>";
echo "<form class='comment' method='post' >";
echo "Name:". "<p align='center'>" . "<textarea name='name' tabindex='4' title='name' id='comment' class='forminput' rows='3' cols='30' name='comment'  >" . "</textarea>" . "</p>";
echo "Comments:" . "<p align='center'>" . "<textarea name='post' tabindex='4'  id='comment' class='forminput' rows='3' cols='30' name='comment'>" . "</textarea>" . "</p>";
echo "<p align='center'>" . "<input type='submit' value='Submit' class='submitbtn' name='Submit' onclick='this.disabled=true' id='Submit' />" . "</p>"
echo "</form>";
echo "</td>";
echo "</tr>";
echo "</table>";


?>







Can someone please help me arrange the quotation in the above code?
Thanks in advance :D
Dorin85
Forum Newbie
Posts: 20
Joined: Tue Aug 16, 2011 3:16 pm

Re: Need help in arranging php quotation.

Post by Dorin85 »

Download Eclipse or Netbeans.

Anyways, here's your fixed code...

Code: Select all

echo "<tr>";
echo "<td>";
echo "<form class='comment' method='post' >";
echo "Name:". "<p align='center'>" . "<textarea name='name' tabindex='4' title='name' id='comment' class='forminput' rows='3' cols='30' name='comment'  >" . "</textarea>" . "</p>";
echo "Comments:" . "<p align='center'>" . "<textarea name='post' tabindex='4'  id='comment' class='forminput' rows='3' cols='30' name='comment'>" . "</textarea>" . "</p>";
echo "<p align='center'>" . "<input type='submit' value='Submit' class='submitbtn' name='Submit' onclick='this.disabled=true' id='Submit' />" . "</p>";
echo "</form>";
echo "</td>";
echo "</tr>";
echo "</table>";
You were missing a semi-colon on an echo.
truce enough
Forum Newbie
Posts: 8
Joined: Fri Sep 02, 2011 12:53 am

Re: Need help in arranging php quotation.

Post by truce enough »

oic Thanks a lot, it worked!
Post Reply