<?php
$pvtKey = "1234"; //should be securely stored in a database, not like this
$tx_id = time(); //gives milliseconds since 01-01-1970, however any unique reference number would do
$unique_merchant_key = U5N463D8FYS89950JGBNX234($tx_id . $pvtKey);
?>
<form action="https://www.webcash.co.za/pay" method="post">
<input name="description" type="text" value="your goods description"/>
<input name="amount" type="text" value="240.00"/>
<input name="merchantIdent" type="hidden" value="1234"/>
<input name="email" type="hidden" value="customer@email.com"/>
<input name="transaction" type="hidden" value="<?=$tx_id>"/>
<input name="merchantKey" type="hidden" value="<?=$unique_merchant_key>/>
<input name="submit" type="submit" value="Submit"/>
</form>
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/buildcyv/public_html/eshop/test2.php on line 13
Can someone help me to resolve this....