Page 1 of 1

problems....

Posted: Thu Jun 27, 2002 5:18 pm
by jayymz
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??

Code: Select all

<?php
global $PHP_SELF;

if(isset($_POST&#1111;'submit']))&#123; 

$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);

?>
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

Posted: Thu Jun 27, 2002 6:26 pm
by DSM