Jump to content

mpsn

Members
  • Posts

    264
  • Joined

  • Last visited

Everything posted by mpsn

  1. mpsn

    Preg ques

    my bad, I should have made new post. Thanks.
  2. mpsn

    Preg ques

    I can't find the pattern characters for digits, letters, whitespace, non-whitespace on official php site, like I think d is for numbers, but how about the rest.
  3. mpsn

    Preg ques

    Hi, Does ",[a-zA-Z0-9]$" => a comma, followed by any alphanumeric as last character, so I don't really need '$' anchor, right?
  4. Hi, I am building a small website for and it needs a simple registration form for volunteers to sign up, it needs stuff like telephone number, name, email, etc, anyways, does anyone know of a quality wordpres contact form plugin that validates the form fields (like email must have @, telephone number can only be integers and only 10 number etc), also needs to be secure, have ability for user to subscribe to email for newletters and also when they submit, to send the information as csv or other text file to the person who will check the applications for volunteer work, I was thinking maybe it will be sent to them as zipped email or possibly sent to WordPress db in a new field and then the admin can simply export it to a csv or whatever format. Btw, I'm using WordPress 3.3.1. Any help appreciated.
  5. No, it's still not working after removing margin attribute, and now the sidebar goes to the right (still inside my content 'div') BUT now the sidebar top border is lined up withe the bottom of the 'content' div... Any help appreciated.
  6. Ok, I'll try that first, also do you know why when I zoom out (CTRL and minus sign), why does the the 'contact us' move out of place, if you try, you will see what I mean. Appreciate it.
  7. Hi, for my sidebar, I'm not sure why when I add content (eg:<p>The qquick brown fox jumps over the lazy dog.</p>) inside the content div, that the sidebar shifts downwards, you can try, just cut out the <p>The quick brown...</p> and the sidebar shifts back upwards? Here is my CSS: =========== /*================PAGE STYLES=============*/ body { background-image:url('images/fadedGreenbackground.jpg'); background-attachment:fixed; } h3 { font-family:Verdana,Arial,sans-serif; text-align:center; color: #000080; margin-left:250px; border:1px solid black; } h5 { font-family:Verdana, Arial, sans-serif; text-align:center; } .container { width:800px; margin-left:auto; margin-right:auto; border:1px solid black; padding:100px 5px 0px; background-color:#9F9; } /*=================HEADER STYLE============*/ .header { width:750px; margin-left:auto; margin-right:auto; margin-top:-98px; padding:20px; border:1px solid black; background-color:#FFF; } .header img/*this means all images inside div 'header' will have header's style*/ { width:200px; height:220px; margin-top:-10px;/*we have to overlap and go past the header padding of 10px (see above)*/ border-right:1px solid black; } /*==================MENU NAV STYLE============*/ .menu/*container for menu nav items*/ { width:780px; margin-left:auto; margin-right:auto; padding:8px 5px; border:1px solid black; text-align:center; } .menu ul li { display:inline; border:1px solid #00FF7F; background-color:#00FF7F; margin:0px 6px 0px -4px; padding:20px 15px 23px 15px; font-family:Verdana,Arial,sans-serif; } .menu a:link { color:#000; text-decoration:none; } .menu ul li a:hover { color:#FFF; text-decoration:underline; background-color:#006400; } .menu a:visited { color:#191970; } /*===============CONTENT BODY STYLE===========*/ .content { width:790px; margin-left:auto; margin-right:auto; margin-top:30px; padding:400px 5px 0px 5px; border:1px solid black; background-color:#FDF5E6; } #bodyText { background-color:yellow; border:1px solid black; margin-left:300px; margin-right:330px; } /*.content p/*NB: p.content NOT same as .content p**/ /*{*/ /*background-color:yellow;*/ /*}*/ /*==========SIDEBAR STYLE=================*/ .sidebar { width:200px; margin-top:-390px; margin-left:500px; margin-right:300px;/*WHY DOESN"T THIS WORK? why doesn't side bar move 300 from the right towards the left??*/ margin-bottom:10px; padding:100px 50px 500px 10px; border:1px solid black; } /*===========FOOTER STYLE====================*/ .footer { width:750px; margin-left:auto; margin-right:auto; margin-bottom:5px; padding:20px; margin-top:10px; background-color:#00FF7F; border:1px solid black; } Here is my HTML: ============ <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title></title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="container"><!--wrapper for content body: holds header, menu, content body (which in turn holds sidebar), footer--> <div class="header"> <img src="images/logo.jpg" title="Welcome to my Website!" alt="Welcome to my Website!"/> </div> <div class="menu"> <ul> <li><a href="#home">home</a></li> <li><a href="#education">education</a></li> <li><a href="#photo">photo gallery</a></li> <li><a href="#games">Games</a></li> <li><a href="#contact">contact us</a></li> </ul> </div> <div class="content"> <p> the quick brown fox jumps over the lazy dog.<!--Why does adding this line cause the sidebar to shift downwards????--> </p> <div class="sidebar"> </div> </div> <div class="footer"> </div> </div> </body> </html> Any help appreciated.
  8. Hi, what's the difference b/t: .header img { width:200px; height:220px; margin-top:-10px;/*we have to overlap and go past the header padding of 10px (see above)*/ border-right:1px solid black; } compared w/ : img.header { /*etc*/ } I tried the img.header and the image takes up entire space in my header, whereas .header img{/*stylle info*/}. Any hope appreciatedd
  9. So is verification checking each stage with the previous and validation is always checking back with the requirements to make sure we have abide to the client's needs?
  10. Hi, I'm confused as to difference b/t processes of verification and validation we need to employ in each stage of s/w engineering to ensure quality products.
  11. Hi, I need to build my own xml validator and was wondering, what are some possible purposes of having multiple text nodes for a given parent node, I ask b/c while I was playing around with W3schools XML validator, I noticed it successfully validated the following: <?xml version="1.0" encoding="utf-8" ?> <note> <to>Joh</to> <from>Frank</from> <body>Hello world</body> Extra text node that is validated! </note>
  12. Hi, does anyone know use wordpress, I'm told I need to use an FTP, so I use Filezilla and on the client side, I put my wordpress folder in localhost (I use XAMPP) so C:\XAMPP\wordpress\...install.php and wordpress installed, and I added a new user in phpmyadmin for my wordpress db with a username and password set but when I open Filezilla client and enter host: 127.0.01 (localhost) and port 21, and change logon type to normal and enter the username wordpress@localhost and the password I set up in phpmyadmin, it says: Could not connect to server Any help appreicated
  13. Ok, forget drupal, so how do I set up a mail server in php.ini. Any help appreciated!
  14. So how would I get it working b/c you need that to run drupal, right?
  15. I thought you have to change the email settings in php.ini in order to use sthe email functionality or maybe that doesn't make sense. You see I just installed Drupal but after I logged out, I can't log in anymore, b/c the valid email address I use, it gives me the message: warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\drupal\includes\mail.inc on line 192. But line 192 is just a closing brace! I'm not sure what to do...
  16. Hi, which options do I change/uncomment to set up a specific email address. I am using localhost Any help appreciated!
  17. I already created a db via phpmyadmin called drupaltest, then I typed in user as drupaltest with exact same password,but when I logged out and tried to login, it says wrong username and password. Please any help appreciated!
  18. Ok, I put the entire downloaded drupal folder in my localhost directory (eg: c:\xampp\htdocs\drupal\install.php) and installation is all good EXCEPT one thing, it says successfully installed but gives me message about mail configuration, how do I change this because when I logged out and tried to log in to localhost/drupal, it doesn't work. Any help appreciated!
  19. Hi, I downloaded Drupal 6.22 and I am using XAMPP, so how do I start installing drupal and adding pages and content? I already created a new user in phpmyadmin's Privileges tab too. Btw, I'm using Windows 7 64-bit. Any help appreciated.
  20. mpsn

    which CMS

    So as a real developer working in a real IT company with a salary, you probably don't use CMS I'm guessing.
  21. mpsn

    which CMS

    I decided to go with Drupal, but I read somewhere where you don't need to know HTML, PHP, but CSS at least. I know these things but then won't using a CMS like this make a developer dumb down on their knowledge and experience with PHP for example? So there's no point in learning PHP etc...
  22. Hi, I want the drop down select input to change the textbox to the appropriate phone number, but it's not working: Here's the HTML: <html> <head> <script type="text/javascript" src="js_.js"></script> <body> <form id="form_3"> <select id="select_2" onclick="getPhoneNumber( this.options[this.options.selectedIndex].value );"> <option value="pizza73">Pizza 73</option> <option value="work">Work</option> <option value="school">School</option> </select> <input type="text" id="phoneNumberText" value="displays phone number" /> </form> </body> </html> Here's the external JS (js_.js): var phoneBook = new Array(); phoneBook["pizza73"] = "780 473 7373"; phoneBook["work"] = "780 444 8621"; phoneBook["school"] = "780 444 8000"; function getPhoneNumber(selected) { var showPhoneNumber = document.getElementById("phoneNumberText").value; showPhoneNumber = phoneBook[selected]; } Any help appreciated.
  23. mpsn

    which CMS

    Hi I am fourth year and I would like to know of the two CMS, which should I use: Joomla or Drupal. I am to build a website for a children's daycare center, the meat of the website would be login for parents, staff, a calendar with ability to add and change important info, and a registration form online for parents to register their children. There are about 12 pages that link to one another, or do you think it's better to do coding on my own and not use one the above mentioned CMS frameworks? Once I complete the practicum, it will be maintained by the daycare staff (who may not be illiterate with editing and uploading new information like images and prices for different age groups etc). Any help appreciated!
  24. Thanks, it works now. I was reading a javascript tutorial since w3schools is dry and boring, but that tutorial for the most part was good (it was written in 2010), but it said to use: <select name="choose_category" onchange="swapOptions(window.document.the_form.choose_category.options[selectedIndex].text);"> and it did not include text property in the <option> tag.
  25. Hi, the javaScript should have an alert popup indicating the ith <option> selected (the index), but its not working. Here's the HTML: <!DOCTYPE html> <html> <head><title>HTML5, CSS3, CSS, JavaScript, AJAX practice</title> <script type="text/javascript" src="js_.js" ></script> </head> <body> <form id="form_2"> <br /><br /> <select id="select_1" size="4" onchange="whichPet(document.getElementById('select_1'));"> <option>golden retriever</option> <option>siamese cat</option> <option>goldfish</option> <option>parrot</option> </select> </form> </body> </html> here's the JS in external script: js_.js function whichPet(var petList) { alert("You selected " + petList.options[selectedIndex].text); }
×
×
  • 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.