/booka/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/booka/trunk
11 by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs.
1
<?
2
/*
3
	 the ifs and buts for the forms.
4
*/
5
6
if($_POST[fromadd]){
28 by Gustav Hartvigsson
fixxed some strange behavior where reloding the dbEditor.php caused it to commit the same data again te the db.
7
	if($_POST[name] == null){
11 by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs.
8
		
24 by Gustav Hartvigsson
changed some stuff to use the CSS class 'warning'.
9
		$nameunset = 'class="warning" ';
28 by Gustav Hartvigsson
fixxed some strange behavior where reloding the dbEditor.php caused it to commit the same data again te the db.
10
		$errorMsg = $errorMsg."you need a name .<br />";
11
		$valid = false;
11 by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs.
12
	}
13
	if($_POST[phone] == null){
14
		
24 by Gustav Hartvigsson
changed some stuff to use the CSS class 'warning'.
15
		$phoneunset = 'class="warning" ';
28 by Gustav Hartvigsson
fixxed some strange behavior where reloding the dbEditor.php caused it to commit the same data again te the db.
16
		$errorMsg = $errorMsg."you need a phone number .<br />";
16 by Gustav Hartvigsson
Lots of broken code that i have no idea how to fix.
17
		$valid=false;
11 by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs.
18
	}
19
	if($_POST[email] == null){
20
		
24 by Gustav Hartvigsson
changed some stuff to use the CSS class 'warning'.
21
		$emailunset = 'class="warning" ';
28 by Gustav Hartvigsson
fixxed some strange behavior where reloding the dbEditor.php caused it to commit the same data again te the db.
22
		$errorMsg = $errorMsg."you need an e-mail adress .<br />";
29 by Gustav Hartvigsson
iBah
23
		$valid = false;
11 by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs.
24
	}
25
	if($_POST[adress] == null){
26
		
24 by Gustav Hartvigsson
changed some stuff to use the CSS class 'warning'.
27
		$adressunset = 'class="warning" ';
28 by Gustav Hartvigsson
fixxed some strange behavior where reloding the dbEditor.php caused it to commit the same data again te the db.
28
		$errorMsg = $errorMsg."you need a street adress .<br />";
29
		$valid = false;
11 by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs.
30
	}
31
	if($_POST[StartDate] == null){
32
		
24 by Gustav Hartvigsson
changed some stuff to use the CSS class 'warning'.
33
		$StartDateunset = 'class="warning" ';
28 by Gustav Hartvigsson
fixxed some strange behavior where reloding the dbEditor.php caused it to commit the same data again te the db.
34
		$errorMsg = $errorMsg."you need a start date .<br />";
35
		$valid = false;
11 by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs.
36
	}
37
	if($_POST[EndDate] == null){
38
		
24 by Gustav Hartvigsson
changed some stuff to use the CSS class 'warning'.
39
		$EndDateunset = 'class="warning" ';
28 by Gustav Hartvigsson
fixxed some strange behavior where reloding the dbEditor.php caused it to commit the same data again te the db.
40
		$errorMsg= $errorMsg."you need a end date .<br />";
16 by Gustav Hartvigsson
Lots of broken code that i have no idea how to fix.
41
		$valid=false;
11 by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs.
42
	}
16 by Gustav Hartvigsson
Lots of broken code that i have no idea how to fix.
43
} else {
44
	
45
	$valid=false;
11 by Gustav Hartvigsson
merging Neo to trunk. freezing neo branshs.
46
}
47
48
?>