I am not getting the proper representation of an HTML table after inserting php code in
"td" tag while the code is is php page only so that server can execute the code inside the "td" tag. Following is the code :

What are you getting? How does it differ from what you expect?
–
QuentinJan 9 '12 at 11:18

1

Please post the PHP code, including the part that sets the variables involed, and describe what you think is wrong in the presentation. Also run HTML validation, as your code now has a syntax error.
–
Jukka K. KorpelaJan 9 '12 at 11:27

@Quentin Hi Quentin , Before the table an unknown input field is being created...while the formatting of a statement before the first row in table is also changing after adding the php code in &lt;td&gt; tag
–
cbinderJan 9 '12 at 15:18

Can you post the output HTML from your PHP? That will help us see what you're actually getting to determine where things might be off a bit.
–
TLSJan 9 '12 at 15:50

1 Answer
1

Two things stand out to me in the output HTML, but I'm not sure they will actually solve your problems. First, there is a space missing with the first "Yes" option tag in the output HTML, but this could be just a copy/paste issue. In the output HTML, the first option tag is appearing as optionvalue, which is invalid.

Second, you have the value="No" attribute in your reviewer_response select list in the closing option tag for the "Yes" option rather than in the opening tag of the "No" option.

To me, neither of those really says, "this is what's causing the primary issue;" however, cleaning up the little issues with the code could solve the bigger problems as a side effect.