Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: padekit istaisyt klaida ;D

Parašė EHF· 2009 Lap. 13 16:11:13
#1

Raso kad klaida 19 eiluteja [Parse error: parse error, unexpected T_STRING in W:\www\x.php on line 19]
Kodas:
<?php
If(empty($_POST['url']) || empty($_POST['dydis']) || empty($_POST['didis'])) {
?>
<SCRIPT LANGUAGE="javascript">
alert('Klaida')
history.go(-1)
</SCRIPT>

<?php
exit;
}
else {
setlocale(LC_ALL, "lt_LT");
$url =stripslashes(trim(htmlspecialchars( $_POST['url'])));
$dydis =stripslashes(trim(htmlspecialchars( $_POST['dydis'])));
$didis =stripslashes(trim(htmlspecialchars( $_POST['didis'])));


$informacija = "<br><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="85" height="74">
  <param name="movie" value="$url">
  <param name="quality" value="high">
  <embed src="$vardas" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="$dydis" height="$didis"></embed>
</object>


<br>";

$failas = "gg.txt";
$duomenys =fopen($failas, "a");
fwrite($duomenys, "$informacija \n");
fclose($duomenys);
header("Location: z.php");
}
?>



Parašė ozzWANTED· 2009 Lap. 13 16:11:38
#2

Sintaksės pasimokyk bent jau:
$informacija = '<br><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="85" height="74">
  <param name="movie" value="$url">
  <param name="quality" value="high">
  <embed src="$vardas" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="$dydis" height="$didis"></embed>
</object>';



Parašė bruzgis· 2009 Lap. 13 16:11:42
#3

<?php
If(empty($_POST['url']) || empty($_POST['dydis']) || empty($_POST['didis'])) {
?>
<SCRIPT LANGUAGE="javascript">
alert('Klaida')
history.go(-1)
</SCRIPT>

<?php
exit;
}
else {
setlocale(LC_ALL, "lt_LT");
$url =stripslashes(trim(htmlspecialchars( $_POST['url'])));
$dydis =stripslashes(trim(htmlspecialchars( $_POST['dydis'])));
$didis =stripslashes(trim(htmlspecialchars( $_POST['didis'])));


$informacija = "<br><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"85\" height=\"74\">
<param name=\"movie\" value=\"$url\">
<param name=\"quality\" value=\"high\">
<embed src=\"$vardas\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"$dydis\" height=\"$didis\"></embed>
</object>

<br>";

$failas = "gg.txt";
$duomenys =fopen($failas, "a");
fwrite($duomenys, "$informacija \n");
fclose($duomenys);
header("Location: z.php");
}
?>



" dvigubu kabuciu nedek tarp esamu dvigubu kabuciu. nebent iki kintamaji,. tada dar tasku reikia echo "jonas ejo ". $namo . " visiskai girtas";

Parašė EHF· 2009 Lap. 13 17:11:21
#4

dbr geraj bet issaugant [alert] meta Klaida
gal kitam faile blogaj
z.php
<?php $title="Donate";

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE><?php echo $title; ?></TITLE>
<meta http-equiv="content-type" content="text/html; charset=windows-1257">
<meta http-equiv="Content-Language" content="lt">
<style>
body, td, input, textarea {
font-family: verdana;
font-size: 10pt;
}
</style>
</HEAD>
<BODY><center>
<HR size=1 width=400 color=#990000><br>
<font color="#990000" size=3><b><?php echo $title; ?></b></font>
<FORM ACTION="x.php" METHOD=POST>
<br>
<br>
Swf Url
<INPUT TYPE="TEXT" NAME="url" SIZE=30 MAXLENGTH=30>
Dydis[Z]
<INPUT TYPE="TEXT" NAME="dydis2" SIZE=4 MAXLENGTH=4>
Dydis[X]
 <INPUT TYPE="TEXT" NAME="didis2" SIZE=4 MAXLENGTH=4>
 <br>
 <br>
 <br>
<INPUT name="Submit" TYPE="submit" Value="Prideti">
<INPUT TYPE="RESET" Value="trinti">
</FORM><HR size=1 width=400 color=#990000>

<?php

include("gg.txt");
 ?>
</body>
</center>
</html>




bandau kaska bet nesigauna ;D

Parašė EHF· 2009 Lap. 13 19:11:27
#5

nieks nepades?

Parašė ArturasS· 2009 Lap. 18 21:11:25
#6

Kad formoj net nestovi php :D Ten kur pati išsiuntimo forma ten ant html padaryta :D

Pataisiau bent esmines klaidas
<?php
$title == "Donate";
include("gg.txt");

echo"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<HTML>
<HEAD>
<TITLE>$title</TITLE>
<meta http-equiv=\"content-type\" content=\"text/html; charset=windows-1257\">
<meta http-equiv=\"Content-Language\" content=\"lt\">
<style>
body, td, input, textarea {
font-family: verdana;
font-size: 10pt;
}
</style>
</HEAD>
<BODY><center>
<HR size=1 width=400 color=#990000><br>
<font color=\"#990000\" size=3><b>$title</b></font>
<FORM ACTION=\"x.php\" METHOD=POST>
<br>
<br>
Swf Url
<INPUT TYPE=\"TEXT\" NAME=\"url\" SIZE=30 MAXLENGTH=30>
Dydis[Z]
<INPUT TYPE=\"TEXT\" NAME=\"dydis2\" SIZE=4 MAXLENGTH=4>
Dydis[X]
<INPUT TYPE=\"TEXT\" NAME=\"didis2\" SIZE=4 MAXLENGTH=4>
<br>
<br>
<br>
<INPUT name=\"Submit\" TYPE=\"submit\" Value=\"Prideti\">
<INPUT TYPE=\"RESET\" Value=\"trinti\">
</FORM><HR size=1 width=400 color=#990000>

</body>
</center>
</html>";

?>

Redagavo ArturasS· 2009 Lap. 18 21:11:47

Parašė EHF· 2009 Lap. 18 22:11:00
#7

nieko tu cia nepadarei tik include perkeliai i virsu :]:]:]