problems....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jayymz
Forum Newbie
Posts: 4
Joined: Thu Jun 27, 2002 2:48 pm

problems....

Post 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
DSM
Forum Contributor
Posts: 101
Joined: Thu May 02, 2002 11:51 am
Location: New Mexico, USA

Post by DSM »

Post Reply