You are here: Re: How to check form -> email « All PHP « IT news, forums, messages
Re: How to check form -> email

Posted by Ψrjan Langbakk on 06/24/06 11:09

Den 24.06.2006 09:49, skriblet l3vi501@gmail.com fΓΈlgende:
> I think this is what your looking for.
> http://www.boogybonbon.com/2006/06/24/php-email-script-security-form-email-anti-hacking-script/

Hm. Yes, maybe. I don't know PHP all that well, and I'm trying to learn,
but if someone could give me some pointers as to how to implement the
PHP code from that webpage (or, of course, other ways to do it) into my
current code, I'd appreciate it a lot.

My current code:

<?php
$henv = "Henvendelsen gjelder: " . $_POST["hnvd"] . "\n\n";
$user = "Navn: " . $_POST["user_name"] . "\n";
$adrs .= $_POST["mail_adresse"] . "\n";
$gadrs .= "Gateadresse: " . $_POST["gate_adresse"] . "\n";
$tlf .= "Telefonnummer: " . $_POST["tlf_number"] . "\n\n";
$kom .= "" . $_POST["babbel"] . "\n\n";
$valkode .= "" . $_POST["kode"] . "\n";
$sjekkode .= "" . $_POST["validering"] . "\n";
if ($valkode != $sjekkode) {
header( "Location: error.php" );
}
else {
mail("hjelp@xxxxxxxxxxx.no","Anmodning om
hjelp","$henv$user\rMailadresse: $adrs$gadrs$tlf$kom", "From: $adrs" );
}
?>

<?php include 'takk.php' ?>

This code is called from a form (separate file) - if the forms code is
needed also, please tell me.


--
mvh
Ørjan Langbakk

 

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

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