2 require_once("language.inc.php");
5 if ($_POST['Submit']=='Add'){
7 $myconst=$_POST['constant_name'];
8 $sql="SELECT * FROM lang_constants WHERE constant_name='".$_POST['constant_name']."' limit 1" ;
11 echo ("Data Alike is already in database, please change constant name<br>");
15 $val_constant=$myconst;
17 $sql="INSERT INTO lang_constants SET constant_name='".$myconst."'";
19 echo ("Constant $myconst added<br>");
30 <FORM name
="cons_form" METHOD
=POST ACTION
="?m=constant">
32 <TD
><?
xl ('constant name','e'); ?
></TD
>
33 <TD
><INPUT TYPE
="text" NAME
="constant_name" size
="100" value
="<? echo $val_constant; ?>"></TD
>
37 <TD
><INPUT TYPE
="submit" name
="Submit" value
="Add"></TD
>
41 Please Note
: constants are
case sensitive
and any
string is allowed
.