• Home
  • Blog
  • Projects
    • QWcrm
    • Joomla
      • mod_helloworld
      • plg_helloworld
      • QWRealURL
  • KB
    • Articles
    • Links
  • Forum
  • Stuff
    • Links
  • Search
  • Login
QuantumWarp QuantumWarp QuantumWarp
  • Home
  • Blog
  • Projects
    • QWcrm
    • Joomla
      • mod_helloworld
      • plg_helloworld
      • QWRealURL
  • KB
    • Articles
    • Links
  • Forum
  • Stuff
    • Links
  • Search
  • Home >
  • KB >
  • Links >
  • Programming >
  • Javascript >
  • Articles >
  • [RESOLVED] Check entered string textbox against array
Plusnet - Header Banner

[RESOLVED] Check entered string textbox against array

I am having some trouble with the most simple of scripts.

I have a textbox and a submit button, thats all. What I want to happen is; a user enters a string into a textbox and clicks a submit button. I want a dialogue box to appear to say either area 1 or area 2. I have an array of postcodes that fall into area 1, all others are area 2. the user will enter the 2, 3 or 4 character UK postcode prefix into the textbox. the string will be compared to values in the array. If the post code is in the array, then this is displayed; else display that.

Listing Details

http://www.webdeveloper.com/forum/showthread.php?203008-RESOLVED-Check-entered-string-textbox-against-array
Website
www.webdeveloper.com/forum/showthread.php?203008-RESOLVED-Ch...
Visited
88

Legal

  • Attribution
  • DMCA
  • Privacy & Cookies
  • Terms & Conditions

Resources

  • Feedback
  • Downloads
  • Typography

QuantumWarp

  • About
  • Contact

Follow Us

  • GitHub
© QuantumWarp 2020, Powered by Astroid. Developed by QuantumWarp