Hiding Email Addresses & Phone Numbers In Forum Application?
Jun 10, 2010
I tried searching for this but couldn't find anything that looked correct (Although, I might not have a clue what I'm actually looking at!) I have a fairly simple forum system running as part of my site as part of the member system memberkit. I would like the forum to be public - members can post to the forum, and the public can post to the forum by putting in a name and email address.....
but....I would like some simple code to either block out, xxxx out, or remove entirely email address and phone numbers from forum visitors that are not members. I'd really like to show a gray block over the phone or email address that says "please login to view this information"
Now as part fo the system, I do have IFEQ tags available to determine if the user is a member or not, so I've got somethnig to execute the code on, but I just don't know what the code needs to be.
I've seen this done on other forums before for links and such, I'm just not sure how to do it. I'm guessing it would need to read the whole post message and look for certain strings of characters, etc. [URL]...
I have a mail form that needs to be sent to different recipients based on a different check box selections. That works fine, but if multiple boxes are checked that require two or more recipients, I don't know how to append to the .To property. Is there a way to do this by looping? Or is there some other solution for this?
I was wanting to know what you all thought the best technique is to process email addresses entered in my form. Should I do it in JavaScript, or should I have my web server do it -- however that works. It's just a simple 1-field collection.
I'm attempting to display a list of email addresses from a text file (one address per line) in measured increments, such as one email address per second. sorry, I don't know where to begin on this.Basically I want to use this to "simulate" the appearance of being able to view the real-time send to a series of email addresses. I'm using the PHP mail() funtion to send to the looped list of email addresses, pulled from a text file.It would be great to view the actual realtime send to each address as it occurs in the mail loop, but this simulation will suffice.
Here is the form in question: spraytechDOTcom/download_form.asp I am so close to getting this to work the way that I want, but here is what I am having an issue with: I cannot seem to make it look for the 12 digits that are in the phone numbers that we are going to collect. Ex. 800-123-4567
It doesn't have require 12 characters if there is another way to get the number to validate looking like the example above. Here is my regular expression that I am struggling with:
var re = /[^d-]$/ It seems to block any letters, but it will accept only 1 number. I would really like it to make sure that the phone number is only entered like this: 800-123-4567.
I have looked for days trying to figure this out and have only gotten close.
have a form with three fields for home phone, work phone & mobile phone.I've got jquery to validate that the numbers entered are the right format, i.e. using the following with custom methods for the phoneUK etc.The thing is I only need one of these numbers. I have been trying *all day* to try and get this to work but no joy. I know I need to group them somehow but can't figure it out.I want it so I get a single message if all fields are left empty and then if a field does have an entry then it's validated to ensure its a number.
I am in need of some very simple javascript to validate email address and a phone number from a form. The email address only needs to: 1. Check that the box is not empty. 2. Check that the text imputted contains an '@' symbol. 3. Check that the text imputted contains atleast 1 Period. The phone number only needs to: 1. Check that the box is not empty. 2. Check that there is no more than 11 characters. 3. check that only numeric characters have been inputted. I would like it to report (failure) back as text on the page under the box that has the problem rather than a window.
function check_email(mailstring) { valid = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM"; for(i=0; i < mailstring.length ;i++)
[Code]....
at the moment its checks that someting has been enetered in all these fields,
what would be the best way to check that the email or phone nummber had been entered?? will not send if nothing enetered, but will send if one or both have been enetered?
I am creating a calculator app and I'm a bit stuck with number formatting. Example of how I would like a number to be formatted: $2,899,799 I currently have the formatting working except for the commas. I'm using the following code to achieve this. My result is currently showing up like this $2899799
function format (expr, decplaces) { var str = "" + Math.round (eval(expr) * Math.pow(10,decplaces)) while (str.length <= decplaces) { str = "0" + str } var decpoint = str.length - decplaces return str.substring(0,decpoint) + str.substring(decpoint,str.length); }
function dollarize (expr) { return "$" + format(expr,0) //RESULT FIELDS form.AnnualScrapSales.value = dollarize(((A - B) * (C2/100)) * G2) Is there a way to add to this "function format" code to also achieve the commas?
i have created one simple login form with 5 fields namely username,email id,password,retype password and phone no.i have created alert message for each function,so that when there is an error it displays alert message..now i have to replace all alert messages with inline validation(displays errors beside textbox).
below is the code for simple login form having fields username,email id,password,retype password and phone no. i have done inline validation forcheckName() .i am not getting for the other fields can u tell me how to do it..
The above code was copied from a Youtube tutorial about JavaScript.
I would like to ask, what additional code should be added in the existing code in order to validate the numbers only and an email format before the form to be submitted?
I know I've seen some codes that were done in javascript (I believe). What I am looking for is a script (or website) similar to one that locates where someone received their social security number from::
ie, the user would put in a social security number and then it would show where the person got the number.
what I'm looking for is something for the IP addresses. I have been able to grab the IP addresses from visitors to my website and I would like to locate where my visitors come from.
// checks if the e-mail address is valid var emailPat = /^(".*"|[A-Za-z]w*)@([d{1,3}(.d{1,3}){3}]|[A-Za-z]w*(.[A-Za-z]w*)+)$/; var matchArray = formSignup.txtEmail.value.match(emailPat); if (matchArray == null) [Code]...
What i noticed today, is if a customer registers with an e-mail like: something.something@hotmail.com the first dot throws up the error, i'm not to great on regex
I need a hand with my google maps code Basically what I want to do is display multiple addresses on a single map. I've got that part to work but I need to set-up the bounds and zoom so it zooms out/in and shows all the addresses in the map window...
My problem is after I run the setMapMarker() function in the load() function, I need to pull out the latitude and longitude from the geocoder that is run in the setMapMarker() function... however I can't seem to get it to return those details because the coordinates are pulled in the geocoder function.
Heres my javascript code that will verify email from email input field and check if the checkbox (I agree condition) was checked:
[Code]....
However, this will work fine when calling with a link "javascript:validate('inputForm');" but if I try to prevent users by submitting form with pressing enter I put it in form onSubmit parameter: <form .. onSubmit="javascript:validate('inputForm');"> which will check the forms and submit data (do return) no matter if it matched or no.
I'm attempting to find coordinates for several addresses at a time. I'm using a for-loop to loop through an array of addresses. I figured it would be best to have a separate function to evaluate the coordinate given an address, and just call it in every loop.
Note that my code below is simplified (I removed the for loop because that's not where I'm having trouble). I know that the issue is probably because I'm trying to return a value from an anonymous function... I tried making the variable global, I tried having a return line from within the anonymous function, nothing has worked... any tips?
Last week after much searching, I found the answer to my problem in this newsgroup. I can't find the thread from which I got my solution, but I wanted to report back what worked.
When the site visitor fills out the form and submits it, this calls a rather ordinary asp script like formmail.asp that sends the emails and displays a "thank you" web page. At the very end of my "thank you" web page I placed the following:
This causes the file download to get triggered, and asks the user if they want to save the file. In limited testing this appears to work fine in both Firefox and IE.
would like to have a form like this one where a user cannot enter gmail, yahoo or hotmail addresses in the email filed.Have managed to make it work using this code: