bakercreative;10973562 wrote:
print '<table>
<tr>
<td>hello bmi</td><td><select name="jumpMenu" size="1" class="tabledata" id="jumpMenu">
<option value="test_search_results.php?project=">Choose a project type</option>
<option value="test_search_results.php?project=phoneshop">Phoneshop</option>
<option value="test_search_results.php?project=pfs">PFS</option>
<option value="test_search_results.php?project=car park">Car Park</option>
<option value="test_search_results.php?project=internals">Internals</option>
</select></td>
[COLOR="Red"]<td><input type="button" name="go_button2" id= "go_button2" value="Submit" onclick="MM_jumpMenuGo('jumpMenu','parent',0)" />[/COLOR] </td>
</tr>
</table>';
If you had put your code in the
tags you would have seen that jumpMenu and parent are in blue (blue double underlined is just an advert - ignore those). The reason they are blue is because, as Dragon said you started the print function with a single quote i.e.
[code=php]print '<table><tr><td>I want all of this to print out, don't know why it is not'</td></tr>
The next time the programme sees a single quote it thinks you've finished. So to tell it you haven't you need to escape that single quote by putting a slash in front of it.
print '<table><tr><td>I want all of this to print out, don\'t know why it is not</td></tr>'
Notice how it is all red now. Also don't worry about the slash it won't actually print that.