problems....
Posted: Thu Jun 27, 2002 5:18 pm
Alright, I used to work with register_globals = on - but now I switched it off. Now, with this option off how do I get this info into the database??
everything works except i get an error that says that my values are undefined ($user, $educ, $dist and $focus) how do i get em defined?
/james
Code: Select all
<?php
global $PHP_SELF;
if(isset($_POSTї'submit'])){
$db = mysql_connect("M10074200010", "admin", "farell");
echo "$user";
mysql_select_db("utb_forum",$db);
$sql = "INSERT INTO sel_utb (user,educ,dist,focus) VALUES ('$user','$educ','$dist','$focus')";
$result = mysql_query($sql);
?>/james