Jump to content

justAnoob

Members
  • Posts

    561
  • Joined

  • Last visited

    Never

Posts posted by justAnoob

  1. I have this function that is ran when the submit button is clicked. As you can see, it will display the div that is hidden. Inside that div is an animated gif. The animation only runs in FF but not IE. Is there any way around this problem?

    function do_submit()
    {
      document.getElementById("wait_msg").style.display = "block";
      return true;
    }
    
    <div id="wait_msg" style="display: none;"><img src="images/progress_indicator.gif" /></div>
    

  2. Actually, I came up with another idea, but right now it is only working in FF and not IE. I'm using an animated gif, havig it display when the submit button is clicked, the animation works great in FF, but in IE it just shows the first frame of the animation, not the whole clip? I hate IE.(sometimes) Any ideas why it won't work in IE. sorry to get off subject in the PHP section.

  3. Lets say I have a button on a page. That button runs a script which takes about 5 seconds to complete. At the end of the script, the user is still on that same page after a refresh of the browser. Lets say this is my session var below

     

    $_SESSION['waiting'] = "Please be patient";

     

    Is there a way echo that session on the page while the script is running, using PHP?

  4. actually looking for something to work in conjuction with this function,

    function clicked(element)
    {
    var div=document.getElementById(element)
    if(div.style.display=='none')
    div.style.display='block';
    else
    div.style.display='none';
    return;
    }
    

    This is the click function for my divs, right now the divs are open when the page is loaded. Looking to have them closed when the page is loaded and still be able to use the function above for the clicking.

  5. This is everything right here,  :confused:

    <div align="center">
            <img src="images/register.jpg" width="117" height="30">
            <a href="http://www.mysite.com/registration.php">
              <img src="images/registernow.jpg" width="166" height="30" border="0" />
            </a>
            <img src="images/registernow1.jpg" width="667" height="30">
          </div>
    

  6. i'm stumped.

     

    <?php
    echo '
    <input type="text" name="username" value="Username" class="grey" size="15" onFocus="if(this.value==this.defaultValue) {this.value=''; this.className='black';}" onBlur="if(this.value=='') {this.value = this.defaultValue; this.className='grey';}" />
    
    <input type="text" name="ptext" value="Password" size="15" class="grey" onClick="hidepass(this);"><input type="password" name="password" value="" size="15" class="black" style="display:none" onFocus="setEnd(this);" onBlur="if (this.value=='') {showpass(this);}">
    ';
    ?>
    

  7. I won't keep going on about this subject, just one last thing to mention.

     

    Here is an example of a name and description in the database

     

    Name: 1965 Gibson SG Electric Guitar

    Description: rare 1965 gibson sg electric guitar. original owner. frets have pearl inlays. in very good condition with only minor scratches. plays great with no string buzz.

     

    Now when I type in "guitar" in the search box, 65 Gibson is given to me as a result. (Nice!)

    If I were to type in "guitars" in the search, i get no results (bad)

    Also, if I were to type in "guita", the 65 Gibson is a result (still nice)

  8. ooppss, double reply.

     

    do you mean something like this.

    <?php
    $query = "select * from MYTABLE where SOMETHING like \"$trimmed%\"  or SOMETHING like \"$trimmed%\"  order by ID";
    ?>
    

     

    Just take out the first %  ?

    That only allows me to retrieve the exact word if it is the first word.

     

  9. it seems to be that you are going to try to make almost a database of plural form words,

     

    would it not be better to use like?

     

    eg in your query have LIKE 'crash%'

     

    that would return crash, crashed, crashing, crashn (for those who like to abbreviate) ect

    So my query,

    <?php
    $var = @$_GET['whatever'] ;
    $trimmed = trim($var);
    $query = "select * from MYTABLE where SOMETHING like \"%$trimmed%\"  or SOMETHING like \"%$trimmed%\"  order by ID";
    ?>
    

     

    lets say I have the word "guitar" in my database, with this code, it will not return a result when i enter in "guitars" only if i enter "guitar". Didn't you say that it should return a result or is the query still wrong?

  10. just by having  a cookie established, doesn't mean you have to have the user automatically logged backed in. The browser would just recoginize that this user has been here before and then from there, you could do whatever you want. Such as saying Welcome back for the 25th time, or 26th time, etc.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.