Jump to content

Internet Explorer inserts too many lines


JVerstry

Recommended Posts

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]

Link to comment
https://forums.phpfreaks.com/topic/73857-internet-explorer-inserts-too-many-lines/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.