Reply to Re: Send data form to mysql

Your name:

Reply:


Posted by Luigi Donatello Asero on 10/13/21 11:22

"Hilarion" <hilarion@SPAM.op.SMIECI.pl> skrev i meddelandet
news:dc5eod$73f$1@news.onet.pl...
> Luigi Donatello Asero wrote:
> >> > The page https://www.scaiecat-spa-gigi.com/sv/form.php shows a form
but

> Something tells me that you havent checked the obvious possible causes.
> Check if your table is named "Formular" or "Formulδr" (those are
> totally different words for MySQL).

I have already done it.
But I do not see the data in the form.
Please do not answer, if you do not want to.

The code follows:

<?php
if(isset($_POST['add']) && ($_POST['add']=="Skicka")) {
$fornamn = $_POST['fornamn'];
$efternamn = $_POST['efternamn'];
$db = mysql_connect("local host", "user", "password")
or die('I could not connect');
mysql_select_db("scaiecat_?", $db);
$query="INSERT INTO Formular('Fornamn','Efternamn')
VALUES($Fornamn','$Efternamn')";
mysql_query($query) or die('Error, insert query failed');
}?>
<html>
<body>
<form method="post">
<?php
echo
"<LABEL FOR='Fornamn'>Fφrnamn</LABEL>";
?>
<INPUT TYPE="TEXT" NAME='Fnamn' id='Fornamn'><br>
<?php
echo
"<LABEL FOR='Efternamn'>Efternamn</LABEL>";
?>
<INPUT TYPE="TEXT" NAME='Efternamn' id='Efternamn'><br>
<INPUT TYPE=SUBMIT VALUE=Skicka>
</FORM> </form>
</body>
</html>



--
Luigi Donatello (un italiano che vive in Svezia)
https://www.scaiecat-spa-gigi.com/sv/francavilla-di-sicilia.php

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация