nickholt1972 Posted August 31, 2006 Share Posted August 31, 2006 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]<?phpecho '<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="[email protected]" /><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 Quote Link to comment https://forums.phpfreaks.com/topic/19288-syntax-error-i-expect-it-usually-is-help-needed/ Share on other sites More sharing options...
sasa Posted August 31, 2006 Share Posted August 31, 2006 change Make payments with PayPal - it'stoMake payments with PayPal - it\'s Quote Link to comment https://forums.phpfreaks.com/topic/19288-syntax-error-i-expect-it-usually-is-help-needed/#findComment-83664 Share on other sites More sharing options...
nickholt1972 Posted August 31, 2006 Author Share Posted August 31, 2006 thanks sasa.I need to get myself a finer toothcomb I think.Regards. Quote Link to comment https://forums.phpfreaks.com/topic/19288-syntax-error-i-expect-it-usually-is-help-needed/#findComment-83665 Share on other sites More sharing options...
redarrow Posted August 31, 2006 Share Posted August 31, 2006 Put this under the return input field ok.<input type="hidden" name="rm" value="2"> Quote Link to comment https://forums.phpfreaks.com/topic/19288-syntax-error-i-expect-it-usually-is-help-needed/#findComment-83716 Share on other sites More sharing options...
nickholt1972 Posted September 4, 2006 Author Share Posted September 4, 2006 What will that do? Quote Link to comment https://forums.phpfreaks.com/topic/19288-syntax-error-i-expect-it-usually-is-help-needed/#findComment-85668 Share on other sites More sharing options...
Jenk Posted September 4, 2006 Share Posted September 4, 2006 [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 :) Quote Link to comment https://forums.phpfreaks.com/topic/19288-syntax-error-i-expect-it-usually-is-help-needed/#findComment-85674 Share on other sites More sharing options...
wildteen88 Posted September 4, 2006 Share Posted September 4, 2006 If you want a free PHP IDE to develope your PHP scripts with get phpdesigner 2006 (only for windows) Quote Link to comment https://forums.phpfreaks.com/topic/19288-syntax-error-i-expect-it-usually-is-help-needed/#findComment-85684 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.