خرید بک لینک
Hello,

I am trying to set up a squeeze page where I request the user's first name and email address.
I am trying to have the data sent to my MySQL database using PHP, but I am having problems.
I am using a format that I saw watching several Youtube videos. My database name is bestfibr_FibroidSolutions,
and my table name is Fibroid Health.

Here is the format that I came up with:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>test </title>
</head>
<body bgcolor="#ffffff">

<form action="Fibroid_Health.php" method="post">
<p>Enter Your First Name <input name="first_name" type="text" /></p>
<p>Your Best Email Address <input name="email_address" type="text" /></p>
<input type="submit" value="Subscribe" />
</form>
<?php

define ('DB_NAME' , 'bestfibr_FibroidSolutions');

define ('DB_USER' , '            ');

define ('DB_PASSWORD' , '      ');

define ('DB_HOST' , 'localhost');

$link=mysql_coect ( DB_HOST,  DB_USER,  DB_PASSWORD);

$db_selected=mysql_select_db(DB_NAME, $link);

$value=$_POST ['first_name'];

$value2=$_POST ['email_address'];

$sql="INSERT INTO Fibroid_Health (first_name, email_address)
VALUES ('$value', '$value2')";

?>
 </body>
</html>

But when I insert the information into the forms I get an error message that says:

NOT FOUND
The requested URL /Fibroid_Health.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

And this database and table are in my cPanel on my webhost

Any help that I can get to fix this will be greatly appreciated!

Thank you

برچسب: نویسنده: آیلین رضوانی تاريخ: يکشنبه 15 مرداد 1396 ساعت: 8:34

صفحه بندی