A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: problem sending search query '%%'

  1. #1
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317

    problem sending search query '%%'

    Hi guys,

    from flash i am sending
    searchLets.php?goSearch=letPostcode LIKE 'g45'
    Works fine and does what it should.
    But if i send
    searchLets.php?goSearch=letPostcode LIKE '%g45%'
    My broswer(I.E) dosent like it.

    My AS code
    Code:
    seBT.onRelease = function() {
    	if (mmLoose.getState() == true) {
    		goSearch = mmSearch.getSelectedItem().data+" LIKE "+"'%"+theSearch.text+"%'";
    		searchLets(goSearch);
    	} else {
    		goSearch = mmSearch.getSelectedItem().data+" LIKE "+"'"+theSearch.text+"'";
    		searchLets(goSearch);
    	}
    };
    Any suggestions?

    Cheers
    Paul
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  2. #2
    associate admedia's Avatar
    Join Date
    Oct 2001
    Location
    is
    Posts
    1,347
    I don't really understand your code,
    I am not that advanced with Action Script.

    I can tell you that I.E. will interpret the % in your URL as a space.
    I hope that gives you a clue as to what might be going on.

    Nevermind... it may just be I have no idea what I am talking about...
    Last edited by admedia; 07-10-2005 at 10:27 AM.

  3. #3
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    It's cool i got it sorted, silly mistake on my part.
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center