Jump to content

code inserting <br> in output


hellonoko

Recommended Posts

My bellow code is causing carriage returns/<br>'s between the end of the form and the last line:

echo $row[category];

 

This also happens if I join the last two lines:

echo "</form>" . echo $row[category];

 

echo "<form id=delete_category name=delete_category method=post action=categories.php>";
	echo "<input name=action type=submit value=Delete >"; 
	echo "<input name=id type=hidden value=".$row[id].">";
	echo "</form>";
	echo $row[category];

 

Any suggestions?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/48176-code-inserting-in-output/
Share on other sites

Other than the fact that your html is invalid, I don't see any problems.

 

echo "<form id='delete_category' name='delete_category' method='post' action='categories.php'>";
echo "<input name='action' type='submit' value='Delete'>"; 
echo "<input name='id' type='hidden' value='".$row[id]."'>";
echo "</form>" . $row[category];

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.