Jump to content

Syntax error (i expect - it usually is!) help needed.


nickholt1972

Recommended Posts

The following HTML code works fine in an HTML document. I've added a [b]<?php echo '[/b] at the beginning and an [b]'; ?>[/b] at the end and now I get

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/.sites/123/site117/web/buytest.php on line 3


[code]<?php
echo '<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">buy 
<input type="image" src="https://www.paypal.com/en_GB/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
<img alt="Add to basket" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="info@nicholasholt.co.uk" />
<input type="hidden" name="item_name" value="999">
<input type="hidden" name="item_number" value="999">
<input type="hidden" name="amount" value="999" />
<input type="hidden" name="page_style" value="Primary" />
<input type="hidden" name="no_shipping" value="2" />
<input type="hidden" name="return" value="http://www.appletreenappies.co.uk/store.php" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="lc" value="GB" />
<input type="hidden" name="bn" value="PP-ShopCartBF" />
</form>';
?>[/code]

Its bound to be a syntax error but i'm buggered if I can find it.

Regards,

Nick
Link to comment
Share on other sites

[quote author=nickholt1972 link=topic=106411.msg425569#msg425569 date=1157054505]
thanks sasa.

I need to get myself a finer toothcomb I think.

Regards.
[/quote]You just need a text editor with highlighting, as you can see on this board - it helps :)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.