Jump to content

[SOLVED] adding variables


chocopi

Recommended Posts

ok i would like to have a script where a variable is set a value and when something is done it is added to or taken away from.

 

<?php

$errors = 0;

if ( strlen($username) > 5)
{
	echo ("Your username must be longer than 5 characters. <br />");
	$errors = ++1;
}

?>

 

This doesnt work so i was wondering what changed i would need to do.

 

Cheers,

 

~ Chocopi

Link to comment
https://forums.phpfreaks.com/topic/51711-solved-adding-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.