Jump to content

Feedback URL Submit


rog1121

Recommended Posts

I have a Feedback form that I use to get peoples input. So far it works But I have 2 Problems

 

Here is the Code:

<?php
include "includes/config.php";
$date   = date('jS \of F  h:i A');



$sql="INSERT INTO news (Name, Email, Comments, date)
VALUES
('$_POST[gamertag]', '$_POST[email]', '$_POST[password]', '$date')";

header( 'Location: thanks.php' );

mysql_close($con)
?>

 

I'm making a VB.net Feedback form and I want to imput like this

 

http://mysite.com/feedback.php?name=Mike&[email protected]&comments=comment&date=20th of April  12:30 AM

 

But so far from my testing it doesn't register the values and says that there is a Duplicate value for email ".

 

I'd like it to register values somehow and if there is a duplicate email entered then have it update it or write over it.

 

Any help appreciated,

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/234206-feedback-url-submit/
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.