unexpected T_STRING


Posted on 16th Feb 2014 07:03 pm by admin

error log "[Sat Jan 09 18:27:58 2010] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_STRING in C:\web\htdocs\Filey\2.php on line 8
"
-----------------------------------------------------------------------------------------------------------------
2.php
Code: <?php
$a1 = $_POST["PN"];
$a2 = $_POST["Date_name"];
$a3 = $_POST["Note"];
$filler1 = "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">";
$filler2 = "<html";
$filler2 = "<head>";
$filler3 = "<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">";
$filler4 = "<title>$a1</title>";
$filler5 = "</head>";
$filler6 = "<body bgcolor="#FFFFFF" text="#000000">";
$filler7 = "<div id="bv_Text1" style="position:absolute;left:34px;top:34px;width:713px;height:32px;z-index:0;" align="left">";
$filler8 = "<font style="font-size:27px" color="#000000" face="Arial"><b>Note name:$a1</b></font></div>";
$filler9 = "<div id="bv_Text2" style="position:absolute;left:12px;top:76px;width:781px;height:32px;z-index:1;" align="left">";
$filler10 = "<font style="font-size:27px" color="#000000" face="Arial"><b>Date and time:$a2</b></font></div>";
$filler11 = "<textarea name="TextArea1" id="TextArea1" style="position:absolute;left:41px;top:134px;width:743px;height:391px;font-family:Courier New;font-size:16px;z-index:2" rows="20" cols="70" readonly="readonly">$a3</textarea>";
$filler12 = "</body>";
$filler13 = "</html>";
$myFile = "notenw.html";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "$filler1";
$stringData1 = "$filler2";
$stringData2 = "$filler3";
$stringData3 = "$filler4";
$stringData4 = "$filler5";
$stringData5 = "$filler6";
$stringData6 = "$filler7";
$stringData7 = "$filler8";
$stringData8 = "$filler9";
$stringData9 = "$filler10";
$stringData10 = "$filler11";
$stringData11 = "$filler12";
$stringData12 = "$filler13";
fwrite($fh, "n");
fwrite($fh, "$stringData1n");
fwrite($fh, "$stringData2n");
fwrite($fh, "$stringData3n");
fwrite($fh, "$stringData4n");
fwrite($fh, "$stringData5n");
fwrite($fh, "$stringData6n");
fwrite($fh, "$stringData7n");
fwrite($fh, "$stringData8n");
fwrite($fh, "$stringData9n");
fwrite($fh, "$stringData10n");
fwrite($fh, "$stringData11n");
fwrite($fh, "$stringData12n");
fclose($fh);
?>

No comments posted yet

Your Answer:

Login to answer
67 Like 29 Dislike
Previous forums Next forums
Other forums

MySQL Primary key gap
Alright, so I have a table with 26 entries in it (id, filename, caption) for my image randomiser (ht

Functions Not Loading Into Div
I had some help doing some of this but what I'm trying to do is get my functions to retrieve its val

Select all entries from database that include a phrase
I have a database of clubs - one of the categories is meeting time and place
I would like to have

CURL question
i am wondering if it's possible to use multi curl with login something like

login once to web

animation progress while uploading files?
Hello, i have some website form to upload few files to server. i want to put some gif animation whi

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

Linked Keywords
I am trying to get a script that makes my predefined keyword converted to links and / or converted t

Help with file_get_html
The following code gives the expected results:

<html>
<head&g

Problem with a select distinct
I have a problema with a select distinct, I have the next sql:

select distinct a,b,c,d fr

Wrong Info sent Using $get in form
Hi i have this code that i tried to make to send some info from one page to aother with lots of ppls

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash