nec9716 Posted April 3, 2008 Share Posted April 3, 2008 this is a part of my script: When I run in I have an error on the input line echo "<tr>"; echo "<td width=10%>"; if ($action == 'edit') echo "<input name="name" type="text" value="<?php echo $tpname?>">"; else echo "<td width=10%>"; echo'<select name="pname" size="1" onchange="setItemListBox()">'; while($row = mysql_fetch_array($result6, MYSQL_NUM)) { echo '<option value="' . $row[0] . '">' . $row[1] . '</option>'; } echo '</select>'; } echo "</td >"; Link to comment https://forums.phpfreaks.com/topic/99437-solved-trouble-with-if/ Share on other sites More sharing options...
marcus Posted April 3, 2008 Share Posted April 3, 2008 echo "<input name=\"name\" type=\"text\" value=\"".$tpname."\">"; Link to comment https://forums.phpfreaks.com/topic/99437-solved-trouble-with-if/#findComment-508801 Share on other sites More sharing options...
nec9716 Posted April 3, 2008 Author Share Posted April 3, 2008 yes that work better I still have to find out but I miss or I have too much bracket somewhere thank you mgallforever why when we do input we need to put \ and when I do select I don't need it? Link to comment https://forums.phpfreaks.com/topic/99437-solved-trouble-with-if/#findComment-508804 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.