Search:
Type: Posts; User: four0four
Search :
Search took 0.01 seconds.
In my log files, I've been receiving thousands of requests that look like the following:
"POST / HTTP/1.0" 200 18890 "-" The Incutio XML-RPC PHP Library -- WordPress/3.0.1"
It's so bad...
I'm currently storing a random yet unique salt for each user in my database.
What's the best practice for storing a salt? Can I just store it in the same database with the password hash and other...
I'm trying to add an input element to all forms using appendChild.
The script first searches for input elements with the name of "myinput".
If it finds an input element with that name, it...
Is there a method for breaking out of frames that's truly cross-browser compatible?
I've seen a ton of examples on how to do this, but I'm not sure which method works the best.
Thanks!
This has turned into a very interesting (and informative) discussion. :)
If I understand correctly, JunkMale is saying that all input needs to be sanitized to guard against the unexpected because...
I'm using:
if (isset($_POST['checkbox1'])) {
//execute some code
}
and...
I'm trying to secure my forms by sanitizing all user input.
However, one thing I'm still confused about is whether non-input elements need to be sanitized as well?
For example, if I had a...
That's true. I guess I could take the same approach with shapes?
I could use squares, stars, and triangles...
Would I have to store the correct combo using sessions? Or?
How would I go about creating a simple "captcha" script that:
Displays 8 colored squares, let's say from an array that has red, green, and black.
It then displays these squares in a random...
How can I use jQuery to submit multiple forms with different types, values, and actions?
For example:
<form name="form1" method="get" action="submit1.php">
<input name="value1" type="text"...
Thank you very much! That works perfectly.
One question...
If I wanted to match a string that contains a space how would I do this?
I used ^string$ to mark the beginning and end of my...
That's exactly what I'm looking for...
The only problem is that I want to use separate alternations, like:
links = links.replace(/link 1\b|link one\b|link i\b/gi, test1);
So that if...
I now have the following code:
var index=1;
var test1 = (function(){
return function(){
return "<a href=\""+ (index++) +".html\">This is a link about apples<\/a>";}})();
Thank you both very much! :)
When using a regular expression, is it possible to strip/remove anything that appears after a string that it finds?
For example, if I use:
mystring = mystring.replace(/night/gi, "");
Hi,
If I have this regular expression that matches anything that contains the string "link":
links = links.replace(/link\b/gi, "<a href=\"+ assigned link number goes here...
Thanks everyone for your help! :)
It's fixed now. I had the regular expressions in the wrong order.
Thanks again!
Hi,
I need help with a regular expression that replaces Roman numerals with numbers.
How can tell the regular expression to match exactly what I specify?
When I use the following:
I have the following script that converts line breaks from plain text into HTML formatted paragraphs. It takes plain text from one text area field and outputs the new formatted text into another text...
I'm using the following script that changes/switches an icon that a user clicks on with another one to indicate that the icon is currently active.
When another icon is clicked, the active icon is...
Hi,
I'm trying to fix a script that does a search for all links on a page and applies a display:none style to each one.
Here's what I have so far:
<html>