Search found 15 matches
- Wed Jul 11, 2007 1:13 pm
- Forum: PHP - Code
- Topic: I'm sooo stuck... only works in FF and not IE... please HELP
- Replies: 5
- Views: 390
- Wed Jul 11, 2007 10:02 am
- Forum: PHP - Code
- Topic: I'm sooo stuck... only works in FF and not IE... please HELP
- Replies: 5
- Views: 390
I'm sooo stuck... only works in FF and not IE... please HELP
Hi, my page randomly generates images, users can then rate the image on a scale of 1 - 10. As soon as they rate the image, another image is randomly generated and the rating for the last photo is shown along with the rating that you gave. However the score that you rated only shows up in FF and not ...
- Sun Jul 08, 2007 6:05 am
- Forum: PHP - Code
- Topic: Check username
- Replies: 1
- Views: 364
Check username
Hi, I have a join form on my site. Beside the username field is a button called "check username". If a user clicks this button, a new small window opens in the center of the screen and it allows the user to type in a username to check if it is available. Is there a way that i can just clic...
- Wed Jun 27, 2007 9:23 am
- Forum: PHP - Code
- Topic: adding mysql_real_escape_string
- Replies: 4
- Views: 382
- Wed Jun 27, 2007 9:07 am
- Forum: PHP - Code
- Topic: adding mysql_real_escape_string
- Replies: 4
- Views: 382
adding mysql_real_escape_string
When i am preparing my data for insertion into the database i am adding mysql_real_escape_string, but how do i add it to the about_me part.
thanks
Code: Select all
//retrieve form data in a variable
$firstname = mysql_real_escape_string($_POST['firstname']);
[b]$about_me[/b] = '?';- Wed Jun 27, 2007 7:40 am
- Forum: PHP - Code
- Topic: Small adjustment
- Replies: 3
- Views: 425
Small adjustment
I want to create some PHP validation for my Name input box on my form For my Username input box, i have if (preg_match('/^[a-z0-9_]{5,20}$/i', $username)) This checks that the username is 5 - 20 characters in length and that a-z 0-9 _ characters are only used How do i create a validation similar to ...
- Tue Jun 26, 2007 2:59 pm
- Forum: PHP - Code
- Topic: Simple Question
- Replies: 1
- Views: 250
Simple Question
feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] I have a ...
- Sat Jun 23, 2007 6:39 am
- Forum: PHP - Code
- Topic: The addslashes() function
- Replies: 1
- Views: 254
The addslashes() function
If i use the addslashes() function for ALL queries on my database (such as login), does that mean that my site is completely secure from SQL injections and other threats or is this only the start of it.
- Mon Jun 18, 2007 1:59 pm
- Forum: PHP - Code
- Topic: Form Validation
- Replies: 5
- Views: 830
- Mon Jun 18, 2007 11:31 am
- Forum: PHP - Code
- Topic: Form Validation
- Replies: 5
- Views: 830
Form Validation
I have some form validation done, but it's not very good. How do i make sure that users can only use a-z, A-Z, 0-9. Would this help make sure my site is more secure. (there for users would not be able to use special characters) Here is the code i have so far: // check that username is 5 characters o...
- Mon Jun 18, 2007 9:30 am
- Forum: PHP - Code
- Topic: Email Combo
- Replies: 1
- Views: 395
sorted thanks
Code: Select all
if ($topic == 'Advertising')
$to = "advertising@mydomain.ie";
else
$to = "contact@mydomain.ie";
mail($to, $topic, $body, $from);- Mon Jun 18, 2007 9:05 am
- Forum: PHP - Code
- Topic: Email Combo
- Replies: 1
- Views: 395
Email Combo
feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hi, i hav...
- Sun Jun 17, 2007 5:12 pm
- Forum: PHP - Code
- Topic: Check that user details are correct
- Replies: 3
- Views: 535
Sorry, i got it working. The script is case sensitive because of the code: $username = $_POST['username']; // gets username from the form $password = $_POST['password']; // gets username from the form $susername = $_SESSION['my_array'][0]; // username of person logged in $spassword = $_SESSION['my_a...
- Sun Jun 17, 2007 5:03 pm
- Forum: PHP - Code
- Topic: Check that user details are correct
- Replies: 3
- Views: 535
- Sun Jun 17, 2007 4:34 pm
- Forum: PHP - Code
- Topic: Check that user details are correct
- Replies: 3
- Views: 535
Check that user details are correct
I have a cancel membership section which is only available to users who are logged in. In order to cancel your membership, users must fill in the form which consists of their username and password. This then checks the username and password that they entered in the form against the session variables...