?
Solved

Problem with Mac & Safari and search forms

Posted on 2005-03-03
6
Medium Priority
?
251 Views
Last Modified: 2010-04-06
Hi

I was wondering if there are any known issues with Safari and multiple search forms or if I am just missing something. I have the following code that works fine for IE and FireFox, but on Safari it crashes the page and will not show any of the content past this point.

If I remove this code the page then loads fine in Safari. I have similar code for another search form on the page which will work, but two search forms will not. Can Safari only handle one search form or am I making an error that IE and FireFox can compensate for, but Safari cannot?

Thanks

<td id="memsearch" class="vbmenu_control"><a href="#memsearch">Members</a> <script type="text/javascript"> vbmenu_register("memsearch"); </script></td>


        <!-- member search menu -->

        <div class="vbmenu_popup" id="memsearch_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">

<div class="vbmenu_popup" id="mem_search_menu" style="display:none">

<form action="http://www.vbaexpress.com/forum/memberlist.php" method="post">
      <table cellpadding="4" cellspacing="1" border="0">
                <tr><td class="thead" align=center>Search Members</td></tr>      
<tr>
            <td class="vbmenu_option" title="nohilite">
                  <input type="hidden" name="s" value="$session[sessionhash]" />
                  <input type="hidden" name="do" value="getall" />
                  <input type="text" class="bginput" name="ausername" size="20" value="$ltr" title="$vbphrase[username]" />$gobutton
            </td>
</tr>
      <tr>
            <td class="vbmenu_option"><a href="http://www.vbaexpress.com/forum/memberlist.php?$session[sessionurl]do=search">$vbphrase[advanced_search]</a></td>
      </tr>
        <tr>
            <td class="vbmenu_option"><a href="http://www.vbaexpress.com/forum/memberlist.php">Member List</a></td>
        </tr>
        <tr>
            <td class="vbmenu_option"><a href="http://www.vbaexpress.com/forum/memberlocations.php">Member Locations</a></td>
      </tr>
      </table>
</form>
</div>

                </table>

        <!-- / member search menu -->
0
Comment
Question by:DRJ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 6

Expert Comment

by:benwiggy
ID: 13456919
Try this, I have changed the Ids incase you have comflicts:

<td id="memsearch2" class="vbmenu_control"><a href="#memsearch">Members</a> <script type="text/javascript"> vbmenu_register("memsearch"); </script></td>


        <!-- member search menu -->

        <div class="vbmenu_popup" id="memsearch_menu2" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">

<div class="vbmenu_popup" id="mem_search_menu2" style="display:none">

<form action="http://www.vbaexpress.com/forum/memberlist.php" method="post">
     <table cellpadding="4" cellspacing="1" border="0">
                <tr><td class="thead" align=center>Search Members</td></tr>    
<tr>
          <td class="vbmenu_option" title="nohilite">
               <input type="hidden" name="s" value="$session[sessionhash]" />
               <input type="hidden" name="do" value="getall" />
               <input type="text" class="bginput" name="ausername" size="20" value="$ltr" title="$vbphrase[username]" />$gobutton
          </td>
</tr>
     <tr>
          <td class="vbmenu_option"><a href="http://www.vbaexpress.com/forum/memberlist.php?$session[sessionurl]do=search">$vbphrase[advanced_search]</a></td>
     </tr>
        <tr>
          <td class="vbmenu_option"><a href="http://www.vbaexpress.com/forum/memberlist.php">Member List</a></td>
        </tr>
        <tr>
          <td class="vbmenu_option"><a href="http://www.vbaexpress.com/forum/memberlocations.php">Member Locations</a></td>
     </tr>
     </table>
</form>
</div>

                </table>

        <!-- / member search menu -->
0
 
LVL 6

Author Comment

by:DRJ
ID: 13464934
No change. If I take out the second form that page works perfectly, but with it Safari goes nuts...
0
 
LVL 19

Accepted Solution

by:
webwoman earned 2000 total points
ID: 13508300
You CANNOT nest forms. If you're trying to do that, don't.
0

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question