Jump to content


  • Posts

  • Joined

  • Last visited

feck's Achievements


Member (2/7)



  1. feck

    Account Activation

    hotmail seems to have a problem with me just writing it this way, although emails from others show the links, why is this?just to say that writing the link out just as is shows the link as a link on other email systems, but not on hotmail.
  2. feck

    Account Activation

    Got everything working, randomly generated key, confirmation email, cofirmation php page that checks the url for the key, everything i need basically (i think).Except when i send the email, how do i send a clickable link?
  3. feck

    Account Activation

    I'm trying to find some simple tutorials on account activation, by sending a user a confirmation email that they have to interact with to finally confirm account details. Any sites, or tutorials will be greatly appreciated. I've set up a page that takes info from the user and inserts it into a database, this page then sends an email to the user. This is where i'm at at present. So basically i just need the confirmation bit with an added bonus of some simple security.
  4. feck

    xampplite + mail server

    thanks for replying so fast.I've changed my php.ini settings to:[mail function]; For Win32 only.SMTP = localhostsmtp_port = 25; For Win32 only.sendmail_from = "me@example.com"and in phpinfo.phpthe sendmail_from option shows "no value"no matter wether i restart the server or just restart the whole system.
  5. I've installed and am running a server from my usb stick using the xampplite installation. This has no mail server included so i'm now at a loss as how to configure a simple script such as: <?phpmail("someone.somewhere.com","Hello World", "Hi, World", "Prepare for our arrival. We're starving!");?> and get an email sent from my machine.Every time i change the php.ini file ie the sendmail_from attribute or even the 'smtp=' PHP still does not recognise the change wether a mail server is running or not.I tried to install mecury mail on my system and now i do not even know if this is working.any help would be appreciated.thanksps i'm running vista on my test machine if this makes any difference.
  6. What is it about this goddamed site, that nearly always provides a solution to my answer before anyone has even responded.I always delay asking a question until i feel i have used up all other avenues of information, and then 8 times out of 10 i ask a question and the answer immediatly becomes clear to me after i've finished the post.Changed my reg ex to /[\t{2}]/ and now checks for tabs and spaces, but not returns, so now text boxes can be checked for too much whitespace with no fear of users entering returns, and textareas can include returns.
  7. Is there a regular expression just for the space bar?I know of \t for tab \n for line feed but what is there just for the space bar.Basically i would like to be able to stop users inputting too much space so have been using /[\s{2}]/ to check for the existence of more than 1 white-space character.But this also includes \r for returns, and do not want to include this as some input such as an address inputcan have return characters.Any help would be welcomed
  8. Dont know whats changed but this does not now work with IE.But heres the code: <?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>What a Great Title</title><link rel="stylesheet" href="style.css" type="text/css" /><script src="validation3.js" type="text/javascript"></script></head><body><div id="wrap"> <div id="head"> <h1>This is a Header</h1> </div> <!-- end of 'head' div --> <div id="torso"> <div id="leftnav"> <form action="" method="post"> <fieldset id="nav"> <p> <label for="loguserID">User Name:</label> <input type="text" name="loguserID" id="loguserID" /><br/> <label for="logpassword">Password:</label> <input type="password" name="logpassword" id="logpassword" /><br/><br/> <input type="submit" value="Login" onclick="return Validate(this.form)"/> </p> </fieldset> </form> </div> <!-- end of 'leftnav' --> <div id="main"> <form action="" method="post"> <fieldset id="signup"> <h3>Register Here</h3><hr/> <label for="firstname">First Name:</label> <input type="text" name="firstname" id="firstname" /><br /> <div class="error_show" style="display:none;color:red; font-size:.8em;" id = "error_firstname"></div> <label for="surname">Surname:</label> <input type="text" name="surname" id="surname" /><br /> <div class="error_show" style="display:none;color:red; font-size:.8em;" id = "error_surname"></div> <label for="address">Address:</label> <textarea rows="10" cols="25" id="address"></textarea><br /> <div class="error_show" style="display:none;color:red; font-size:.8em;" id = "error_address"></div> <label for="userID">User name:</label> <input type="text" name="userID" id="userID" /><br /> <div class="error_show" style="display:none;color:red; font-size:.8em;" id = "error_userID"></div> <label for="password">Password:</label> <input type="password" name="password" id="password" /><br /> <div class="error_show" style="display:none;color:red; font-size:.8em;" id = "error_password"></div> <label for="email">Email:</label> <input type="text" name="email" id="email" /><br /> <div class="error_show" style="display:none;color:red; font-size:.8em;" id = "error_email"></div> <input type="checkbox" id="hideMail"/>Would you like to hide your email?<br /><br /> <input type="submit" value="Sign Up Now" id="subbutton" onclick="return Validate(this.form)"/> <hr/> </fieldset> </form> </div> <!-- end of 'main' div --> </div> <!-- end of 'torso' div --> <div id="foot"> <h1>This is the footer! </h1> </div><!-- end of 'foot' div --> </div> <!-- end of wrap div --></body></html> And heres the full java script: function Validate(theForm){ var elemValues = theForm.elements; var idArray = new Array("firstname", "surname", "address", "userID", "password", "email"); //Clear errors //some code to go here to delete the errors which i have deleted for the sake of this problem for (i=0;i<elemValues.length; i++ )//scrolls through the form elements { alert("hello" + elemValues.[id]); if(elemValues[i].value == ""){ //Checks to see if values are empty var errorID = "error_" + elemValues[i].id; document.getElementById(errorID).innerHTML = elemValues[i].id +' is required!'; document.getElementById(errorID).style.display = 'block'; } }} For some reason if i place random alerts in the javascript the errors show one by one and then dissappear after all the errors are shown.I know its checking the button for a value at the end but why does it refresh the page once more.Also a question, every time the javascript reads the document.getElementById statements in the for loop does the entire page refresh or is it stored until the end of the loop. I'm just thinking out loud because i'm beginning to suspect it cant be done the way i'm trying to attempt it, or its something so incredibly simple I'm overlooking it.Anyway see if you can find the cause of the errors not showing on the page.
  9. Hi,I'm messing around with coding a simple validation for checking missing values in a form.I'm using divs to display error messages underneath every input using display:none or display:block depending on if an error is detected.I'm also using a loop to scroll through the form elements and check these values, if a missing value is found the error displays in underneath telling the user that this is missing.In IE everything works fine and shows all the errors after every button click, in firefox all the errors display for a second and then disappear.Why is this? for (i=0;i<elemValues.length; i++ )//scrolls through the form elements { if(elemValues[i].value == ""){ //Checks to see if values are empty var errorID = "error_" + elemValues[i].id; document.getElementById(errorID).innerHTML = elemValues[i].id +' is required!'; document.getElementById(errorID).style.display = 'block'; } }
  10. feck

    Browser problem

    God I've been looking at this for hours.Ive been using something like this to test for email validation using a regular expression, but what i did'nt include this time was the .test function as in spaceCheck.test(elemValues.value).Without knowing it, you provided me with the solution with your statement about this not being a function.Thanks
  11. HiI have this function for validating user input, that initially checks for missing items in the form of actually no input or the user inputting spaces: var spaceCheck = /[\s{2}]/;for (i=0;i<elemValues.length; i++ )//scrolls through the form elements { if((elemValues[i].value == "")||(spaceCheck(elemValues[i].value))){ //Checks to see if values are empty invalid_Entry +="<li>"+ elemValues[i].id + " is missing</li>"; } } Obviously this is not all the script, the invalid_Entry variable is used to output a box that alert the user to missing values.In Firefox this part of the function works as planned but in IE it only works if I remove the 'spaceCheck' in the if statement.Leaving this in IE doesnt show any error box, removing this part of the if statement lets the error box show.But obviously i can then input spaces and my functionality is reduced.Any ideas as to why this would occur?
  12. feck

    Changing my password

    thanks for responding jonas,Underneath my options menu i only have 3 options: Members display name historyFind Members postsFind Members topicsWhere is Change Password?
  13. Hi people,been a long time since i've been here, and forgotten my password, so had to do the email thing.Anyway how do i change this automated password that is impossible to remember?Thanks
  • Create New...