0

As the title says I want to have a text field appear using the if statement.
My simplest attempt....

<?php 
	if($row_Recordset1['NoPages_A'] {
	echo<input type="text" name="firstM" id="firstM" />;}
	
	?>
2
Contributors
4
Replies
6
Views
8 Years
Discussion Span
Last Post by mark2326l
0

Your close bracket is missing:

if($row_Recordset1['NoPages_A']) {
	echo<input type="text" name="firstM" id="firstM" />;
}
0

Thanks but I still get...Parse error: syntax error, unexpected '<'

0

Well, you have to enclose html within quotes:

if($row_Recordset1['NoPages_A']) {
	echo '<input type="text" name="firstM" id="firstM" />';
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.