This is probably something for the php list, however, how is
REGISTER_GLOBALS set on your server? On or off? It is off by default on
newer version of PHP. (has been for a while.)

If it is off you need to grab the vars from post like:

$softwareid = $_POST["softwareid"];
$manufacturer = $_POST["manufacture"];
etc, etc...

Plus...are you able to connect to the db server?

Use:
mysql_connectd("$host", "$username", "$password");

  --  Jason


On Mon, 2004-02-02 at 16:07, Seena Blace wrote:
> Hi,
> Does any one develop any web pages with PHP,Apache,Win2k,Mysql ? If so,can please 
> help me.
> When I 'm inserting data thru html FORM ,getting error Notice: Undefined variable: 
> like this.Can some one please send some tips pl?
> Html code:
>  
> <form action="insert.php" method="post">
> Software id: <input type="text" name="softwareid">
> Manufacturer: <input type="text" name="manufacturer">
> Name: <input type="text" name="name">
> Version: <input type="text" name="version">
> <input type="Submit">
> </form>
> <?
>  
> PHP code
> <?
> $database="testdatabase";
> mysql_connect("localhost");
> @mysql_select_db($database) or die( "Unable to select database");
> $query = "INSERT INTO software1 VALUES 
> ('','$softwareid','$manufacturer','$name','$version')";
> mysql_query($query);
> mysql_close();
> ?>
>  
> Let me know what is wrong pl.
> thx -seena 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free web site building tool. Try it!


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to