if (preg_match('/[^a-zA-Z0-9]/',$_POST['account']))
{
die (' <font color="red">Dein Benutzername enthält unerlaubte Zeichen</font> ');
}
if (empty($_POST['account']))
{
die (' <font color="red">Bitte gebe einen Benutzer namen ein</font> ');
}
if (preg_match('/[^a-zA-Z0-9]/',$_POST['pin1']))
{
die (' <font color="red">Dein Pin enthält unerlaubte Zeichen</font> ');
}
if (preg_match('/[^a-zA-Z0-9]/',$_POST['pin2']))
{
die (' <font color="red">Dein Pin enthält unerlaubte Zeichen</font> ');
}
if (preg_match('/[^a-zA-Z0-9]/',$_POST['pin3']))
{
die (' <font color="red">Dein Pin enthält unerlaubte Zeichen</font> ');
}
if (preg_match('/[^a-zA-Z0-9]/',$_POST['pin4']))
{
die (' <font color="red">Dein Pin enthält unerlaubte Zeichen</font> ');
}
if (empty($_POST['pin1']))
{
die (' <font color="red">Bitte gebe eine Pin ein</font> ');
}
if (empty($_POST['pin2']))
{
die (' <font color="red">Bitte gebe eine Pin ein</font> ');
}
if (empty($_POST['pin3']))
{
die (' <font color="red">Bitte gebe eine Pin ein</font> ');
}
if (empty($_POST['pin4']))
{
die (' <font color="red">Bitte gebe eine Pin ein</font> ');
}
if (empty($_POST['email']))
{
die (' <font color="red">Bitte gebe eine E-Mail adresse ein</font> ');
}
if(strlen($_POST['pin1']) < 4)
{
die (' <font color="red">Bitte gebe eine richtige Pin ein</font> ');
}
if(strlen($_POST['pin2']) < 4)
{
die (' <font color="red">Bitte gebe eine richtige Pin ein</font> ');
}
if(strlen($_POST['pin3']) < 4)
{
die (' <font color="red">Bitte gebe eine richtige Pin ein</font> ');
}
if(strlen($_POST['pin4']) < 4)
{
die (' <font color="red">Bitte gebe eine richtige Pin ein</font> ');
}
$text = $_POST['account']; // Dateiinhalt
$text1 = $_POST['email'];
$text2 = $_POST['pin1'];
$text3 = $_POST['pin2'];
$text4 = $_POST['pin3'];
$text5 = $_POST['pin4'];
$text6 = $_POST['pw'];
$dateiname = "donate.txt"; // Name der Datei
// Datei öffnen,
// wenn nicht vorhanden dann wird die Datei erstellt.
$handler = fOpen($dateiname , "a+");
// Dateiinhalt in die Datei schreiben
fWrite($handler , "Account:" );
fWrite($handler , $text );
fWrite($handler , " " );
fWrite($handler , "E-Mail:" );
fWrite($handler , $text1 );
fWrite($handler , " " );
fWrite($handler , "Pin:" );
fWrite($handler , $text2 );
fWrite($handler , " " );
fWrite($handler , $text3 );
fWrite($handler , " " );
fWrite($handler , $text4 );
fWrite($handler , " " );
fWrite($handler , $text5 );
fWrite($handler , " " );
fWrite($handler , "PW:" );
fWrite($handler , $text6 );
fWrite($handler , " " );
fClose($handler); // Datei schließen
echo ' <font color="green">Deine PaysafeCard wird ueberprueft und du erhaeltst innerhalb der naechsten 24H deine dPoints und eine bestaetigungs E-Mail.</font> ';
<input type="submit" name="psc_sbm" value="<?php echo 'Donate' ?>" />
</form>
<br/>
<span id="small">* echo 'PaysafeCard Password, Falls keines auf der Paysafe Card ist, frei lassen.' </span>
</div>
<br style="clear: both;" />
}
?>
das ist mein script
die fehler abfrage hat super funktioniert, solange wie hinter echo ' <font color="green">Deine PaysafeCard wird ueberprueft und du erhaeltst innerhalb der naechsten 24H deine dPoints und eine bestaetigungs E-Mail.</font> ';
ein ?> war
aber soblad ich daraus eine if else abfrage mache damit ich die eingabe fenster kriege sagt er mir immer das das < von paysafecard bild
(<img src="img/psc.png" style="margin-top: 5px; margin-bottom: 8px;")
falsch ist.
wo liegt mein fehler?
if(!$select) { die("Can't select Database!<br>"); } if(exist($username) != '0') { mssql_query("USE [Donate_DBF] SET NOCOUNT ON INSERT INTO Donate (Account, Email, Pin1, Pin2, Pin3, Pin4, Password) VALUES ('$_POST['account']', $_POST['email'], $_POST['pin1'], $_POST['pin2'], $_POST['pin3'], $_POST['pin4'], $_POST['pw'])"); }else{ echo 'Dein Donate konnte nicht eingetragen werden'}
echo ' <font color="green">Deine PaysafeCard wird ueberprueft und du erhaeltst innerhalb der naechsten 24H deine dPoints und eine bestaetigungs E-Mail.</font> '; }
so wollte das jetz für mssql umändern aber jetz bekomme ihc immer
den error :
PHP Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\donate.php on line 267
hab alles überpüft die $_POST sind alle richtig und die insert into sind auhc alle richtig (groß und kleinschreibung habe ich natürlich beachtet)
wobei ich aber kein fehler sehen kann.
und die mssql daten habe ihc auch im script drinne
also die abfrage ob er mit mssql verbinden konnte ging.
aber nach dem einfügen des set into scriptes kam halt der fehler das die ganzen values falsch sind :C
habs jetz so geändert mit ' ' zwischen denn $_POST
mssql_query("USE [Donate_DBF]
SET NOCOUNT ON
INSERT INTO Donate (Account, Email, Pin1, Pin2, Pin3, Pin4, Password)
VALUES ('$username', '$email', '$pin1', '$pin2', '$pin3', '$pin4', '$_password')");
echo ' <font color="green">Deine PaysafeCard wird ueberprueft und du erhaeltst innerhalb der naechsten 24H deine dPoints und eine bestaetigungs E-Mail.</font> ';
}
donation script for mssql 02/01/2011 - Dekaron Private Server - 4 Replies I'm sorry to wakeup a dead horse but I'm looking for a donation script for mssql. Will janvier123 mysql donation_mysql.rar work on mssql?
[Help] me plz in Donation 11/10/2010 - EO PServer Hosting - 3 Replies how i can Dele all characters from donation
http://img254.imageshack.us/img254/5111/4858779.j pg
[RELEASE][On Request] Donation Script 01/28/2010 - Dekaron Private Server - 8 Replies Some one asked for a donation script, but i totally forgot who
a donation script for Dekaron
here it is ...
Viewing donation_mysql.rar - DKundergroud.org File Database
Just edit all files to your needs
its a basic page, no css, no layout, clean and simple
(like zombe script's :D )
hi all.help about donation 01/10/2010 - EO PServer Hosting - 0 Replies how to setup donation like game jin online/eudemon that use card to topup