You are here: Re: Send data form to mysql « PHP SQL « IT news, forums, messages
Re: Send data form to mysql

Posted by Luigi Donatello Asero on 07/24/05 16:37

In the example below I have only written the html body to try to reduce the
code to a minimum and find the error.

<?php
if(isset($_POST['add']));
$fornamn = $_POST['fornamn'];
$efternamn = $_POST['efternamn'];
$db = mysql_connect("local host", "user",
"password");
mysql_select_db("scaiecat_?", $db);
$query = "INSERT INTO Formulδr ('local host', 'user',
'password');
VALUES ('fφrnamn' ( '$fornamn'), efternamn('$efternamn')";
mysql_query($query) or die('Error, insert query failed'};
else {
echo"<p>Inserted ok.</p>"};
<html>
<body>

<form method="post">
<LABEL FOR="Fornamn">Fφrnamn</LABEL>


<INPUT TYPE="TEXT" NAME="fnamn" id="Fornamn"><br>

<LABEL FOR="Efternamn">Efternamn</LABEL>

<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/rimini.php

 

Navigation:

[Reply to this 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

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