PHP Bug! Help me!

Posted by SN4K3 on Nov. 8, 2006, 4:08 p.m.

Well, I see that anyone knows PHP, or don't want to contact me, so I'm posting the code here to see if anyone can correct it! At the first moment, it said to me the error message, now, it doesn't say anything, so I expect it to be corrected, but, I'll post it here, because it can still be bad:

Form Code:

<form name="form1" method = "post" action = "dllsend.php">
                            <p align="center"><span style="font-size:10pt;"><font face="Tahoma">All fields required:<br>
DLL Name:<br>
<input type="text" name="dllname" style="border-width:1; border-color:black; border-style:solid;"><br>
Creator's name:<br>
<input type="text" name="cname" style="border-width:1; border-color:black; border-style:solid;"><br>
File Link (gm6 + dll):<br>
<input type="text" name="flink" style="border-width:1; border-color:black; border-style:solid;"><br>
Description:<br>
<textarea name="description" rows="11" cols="53" style="border-width:1; border-color:black; border-style:solid;"></textarea><br>
<input type="submit" name="send" value="Send" style="border-width:1; border-color:black; border-style:solid;"> </font></span></p>
                        </form>

dllsend.php Code:

<?php
$dn = $_POST["dllname"]
$cn = $_POST["cname"]
$fl = $_POST["flink"]
$dn = $_POST["description"]
mail("dllfactory@hotmail.com", "$dn by $cn", "Link : $fl/n Description : $de")or die ("An error ocurred while sending the DLL!");
echo "<p>DLL Sended Correcly<p>";
?>

I will add a textbox for you to put the email to contact you!

And also I'll update with a new DLL I'm developing.

-SN4K3

Comments

Arcalyth 19 years, 3 months ago

<form name="form1" method = "post" action = "dllsend.php">

Hmm, see something wrong with that?

SN4K3 19 years, 3 months ago

No?

poultry 19 years, 3 months ago

name="form1" is unneccessary.

<FORM METHOD="POST" ACTION="dllsend.php">

shadowstrike32 19 years, 3 months ago

no spaces in between parameters and values. that equals no workie.

firestormx 19 years, 3 months ago

Quote:
name="form1" is unneccessary.

[<]FORM METHOD="POST" ACTION="dllsend.php"[>]
More like

[<]form method="post" action="dllsend.php"[>]

'Cause while name="form1" isn't neccessary, capital letters aren't either (in fact, you're not alowed to in xhtml.)