开发者

HTML generated by Dreamweaver

When i run the following code below it works in dreamweaver but when i go to view it in a web broswer nothin shows.

The code is

    <table cellpadding="5" cellspacing="1">
<tr>
  <td align="center">

    <form action="search.php" method="get">

<table><tr><td>
<input type="text" name="query" id="query" size="40" value="<?  print quote_replace($query);?>" action="include/js_suggest/suggest.php" columns="2" autocomplete="off" delay="1500">    
</div> 
<td>
<input type="submit" value="Search!">
</td></tr></table>

When i go to view the source code in chrome it only loads

    <table cellpadding="5" cellspacing="1">

<tr>

  <td align="center">



    <form action="search.php" met开发者_运维技巧hod="get">



<table><tr><td>


Check with your host to see if they've enabled the <? tag. It's not turned on by default. If it's not, it's probably causing Chrome a lot of grief.


Check out your syntax. What you've pasted isn't valid. It looks like your'e closing your form twice, or you have an extra set of quotes in the "get" area.

On a side note, I suggest removing display related HTML attributes in favor of CSS. It will help keep a clear distinction between function and look.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜