Jump to content

kn0wl3dg3

Members
  • Posts

    61
  • Joined

  • Last visited

    Never

Everything posted by kn0wl3dg3

  1. I knew there had to be something.. I did too. Thanks to both of you. Going to look into it and see what happens. Be back if I need more help. Thanks
  2. I just realized I was in the mysql board when I posted this! SORRY!!! Can a mod please move it
  3. I looked through all the array functions in the manual, but didn't see what I needed (might have just missed it) Is there a way to stick a value into the middle of an array, without writing over the current value? I would need it to just push the rest back 1. Hope that explains what Im looking for! Thanks in advance
  4. No...phpinfo() says PHP Version 5.1.6 That must be the issue. Thanks!
  5. This is what I get with errors on: Fatal error: Call to undefined function filter_var() in /var/www/html/learning/email_filter.php on line 12 As to your other question, terminal or browser, I'm not sure what you mean, but i wrote it in a file and opened it in my browswer, so I'm assuming the answer is browser
  6. This is the entire thing: <?php echo 'Learning Email Filter<br />'; $email = "someone@exa mple.com"; echo $email; // to make sure it's being set if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "E-mail is not valid<br />"; } else { echo "E-mail is valid<br />"; } echo 'This will appear after the filter script if it works<br />'; ?> Maybe I'm not calling it correctly since you keep asking how I'm calling it. This was straight off the w3c site, so I wouldn't know if I was doing it wrong
  7. That's it. That's the whole script. I was just trying to get it to work; I had tried it once before and just wrote a regex instead when I got frustrated. Maybe it's in my .ini settings?
  8. Any idea why this wouldn't work? It's straight off the w3c site and isn't echoing anything at all $email = "someone@exa mple.com"; if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "E-mail is not valid<br />"; } else { echo "E-mail is valid<br />"; }
  9. My mistake, you were right, I guess I was misunderstanding. Strange as it is, that seemed to take care of the extra click...thank you very much!! Now my question becomes: why is it doing that/how do I fix it so it will grab from the css file easier? I'd rather not define it inline if I can avoid it. Thanks again brianlange
  10. Thanks for the response! Sorry, maybe I was unclear about my exact issue...it does work, but I have to click once on it before it will work (so i click, then click again and it works) I'll try what you suggested though...right after lunch
  11. Hoping you guys can help... I've got this html: <h3 onclick="change('screens')" class="clickable">Biometric Screenings</h3> <ul id="screens"> <li>List item number 1</li> <li>List item number 2</li> <li>List item number 3</li> </ul> And this javascript function: function change(id) { if (document.getElementById(id).style.display=='none') { document.getElementById(id).style.display='block'; } else { document.getElementById(id).style.display='none'; } } This is the css: #screens { display:none; } This is just a header that will show a list when clicked on...very simple. This works just fine except it requires an extra click before it will operate and then it works normally until you refresh/leave. Any ideas why that is and how to get rid of it?
×
×
  • 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.