Lagring af info i db
Jeg har denne html kode :<html>
<head>
<title>URL Searcher</title>
</head>
<body BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\" LINK=\"#0000FF\" VLINK=\"#800040\" ALINK=\"#800040\">
<p align=\"center\"><strong><big>New Webmaster (step 1)</big></strong></p>
<form METHOD=\"POST\" ACTION=\"cgi/step1.cgi\">
<input type=\"hidden\" name=\"searchstring\" value=\"**ADD RECORD**\"><b><p>Name</b><br>
<input NAME=\"name\" SIZE=\"50\" MAXLENGTH=\"50\"><br>
<font Size=\"-1\">Enter your full name</font><br>
<br>
<strong>Street Adress</strong> <strong>+ number</strong><br>
<input NAME=\"street\" SIZE=\"32\" MAXLENGTH=\"100\"><br>
<font Size=\"-1\">Enter the street where your live<br>
</font><br>
<b>Zipcode</b><br>
<input NAME=\"zip\" SIZE=\"10\" MAXLENGTH=\"250\"><br>
<font Size=\"-1\">Enter your zipcode</font><br>
<br>
<b>City</b><br>
<input NAME=\"city\" SIZE=\"19\" MAXLENGTH=\"150\"><br>
<font Size=\"-1\">Enter the name of the city you live in</font><br>
<br>
<b>State </b><br>
<input NAME=\"state\" SIZE=\"11\" MAXLENGTH=\"40\"><br>
<font Size=\"-1\">Enter the state you live in (if non us, type 0 or none)<br>
</font><br>
<strong>Country</strong><br>
<input type=\"text\" name=\"country\" size=\"20\"><br>
<small>Your contry</small><br>
<br>
<strong>Phone</strong><br>
<input type=\"text\" name=\"phone\" size=\"20\"><br>
<small>Your phone number</small><br>
<br>
<strong>Email</strong><br>
<input type=\"text\" name=\"enail\" size=\"20\"><br>
<small>Your email</small><br>
<br>
<input TYPE=\"submit\" VALUE=\"Next (step2)\"> </p>
<small><p><br>
</small></p>
</form>
</body>
</html>
Den skal gemme infoen i en database, eks en teksfil der hedder webmasters.txt
udover det skal den give webmasterne en id. altså den første der signer op får id 1, nummer 2 der signer op id2, osv....
det skal lave i perl
Mvh
ZyGa