JVerstry Posted October 18, 2007 Share Posted October 18, 2007 Hi, I am new to PHP. I am developing my first scripts. I have created a script to insert a record in a MySQL database: <html> <head><title>Register User</title></head> <body> <?php $Alias = $_POST["Alias"]; $Email = $_POST["Email"]; $Time = time(); mysql_connect("localhost","...","..."); $result_insert = mysql_query("insert into DS2Web.Peers (Alias,Email,DSUUID) values ('$Alias', '$Email', '$Time');"); mysql_free_result($result_insert); mysql_close(); ?> </body> </html> When my friend uses Internet Explorer, PHP tends to insert lines with empty values for some fields, in the table... However, we don't have issues with Mozilla. Anybody knows why? The table is a MYSQL table defined as following: create table Peers ( Alias varchar(50) NOT NULL, Email varchar(50) NOT NULL, DSUUID varchar(100) NOT NULL, Registration timestamp, UNIQUE KEY (Alias), UNIQUE KEY (Email), primary key (DSUUID) ); Thanks !!! Sorry if I don't answer quickly, it is getting late in Amsterdam !!! [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/73857-internet-explorer-inserts-too-many-lines/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.