learning regex is fun, or at least knowing it is. I'm relatively new to it, but I can tell you it's the best there is for form validation. That said, matching a white space doesn't require regex.
if (strpos($username_check, " ") && strpos($passwd, " ") && strpos($email_check, " ")){
// have...
Ya, store the data is session variables, and have your form populate from those variables automatically if they are set. as in:
<?php
$_SESSION["example"] = isset($_POST["example"]) ? $_POST["example"] : "";
?>
<form method="post">
<input type="text" name="example" value="<?php echo...
Since the question ought to be in this forum anyway, I use this thread instead on the CSS forum one.
document.getElementById("clrest").innerHTML
Will only get you the word "Restrict", which is not the index of the link. However, I don't see why you need the index.
function disableLink(){...
Your probably right about the link text. I'll add an underline.
I'm aware of the other xhtml rules, but most of them I'm not breaking. I have one span with a div nested in it, which I will have to change to in inline div to validate, but other then that there shoudlen't be to much.
Maybe I'll...
He used my code, though they were nearly identical save the botched if. But I figured, since he seemed to want to use it, that he might want the value for somewhere else.
Ok, it validates now. I think I'm going to switch to xhtml when I get a moment, all I have to do to switch is add a few />s.
I see what you mean about the horisontal shift. I didn't notice it at first because it's rather slight. What could be causing that? The most of the html is identical, and...
Damn. Ok, I put a temp fix on register, and I fixed the page problem.
I'm not able to duplicate the contact issue you mentioned. Which browser are you using?
I'm getting on the validation right now.
Thanks for your help.
Case sensitive if. It's my fault for copying your code without looking.
function GP_popupConfirmMsg(msg) { //v1.0
document.MM_returnValue = confirm(msg);
if (document.MM_returnValue) {
window.location = 'altsurvey.cfm';
}
}
Hello all,
defrex.com is the URL. It's my newly created blog.
Known issues:
- The RSS feeder isn't done yet...
- I still don't have a filter to take malicious script out of comments (trying to learn regex for that)
Concerns:
- The opacity. I have it working in IE and FF, and I really like...
In order to use different videos you would want to change the object tags completely. Depending on the file type of the video, the code will be different.
Try googling for the file type and the word embed. Alternately, let me know what the file type is and I'll see if I can find the code to...
I'll make a mock-up for you with youtube videos...
example
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<script type="text/javascript">
function newVideo(vid){
if (vid=='smp'){...
SELECT resolved FROM bdName WHERE resolved = '0'
It's less load on a server to get only what you need from the database, rather then getting everything and using php to filter out what you want.
On the other hand, if you do need all the information, just not in this code snippet, then disregard.
The easiest way (if you control the whole script) would be to use POST data rather then GET. It's the nature of GET data to be viewable.
Beyond that (if POST is not in the question) then I would say use an AJAX script to pass the get, and feed the returned page through javascript. The...
You've got it right with the mime type. Most e-mail clients don't let you change it. Personally my realm is the web, so I know how to send html e-mails through a PHP script, say, but I'm not sure about a client that'll do it. If you can find an e-mail client that'll let you look at the source of...
Embedding video is a little odd, especially because of all the different browser issues. If I was doing it, I'd re-write the whole player in order to switch videos. There may be a different way, but this one seems the simplest to me.
[code]
<html>
<head>
<title></title>
<script...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.