Forum Moderators: open
I trying to make a pay button.
In the form that produces that button, I must pass a session ID, which is already stored and selected prior to that pay button. But I dont know how to pass that session ID to the form.
Someone told me to use "search and replace".
What is search and replace? is there such a thing in html? how can that be used?
here is the form I'm trying to pass the session ID to:
<form action="http://www.CashUcard.com/cgi-bin/ulink.cgi" method="post">
<input type="hidden" name="merchant_id" value="my_id">
<input type="hidden" name="display_text" value="Baseball hat">
<input type="hidden" name="currency" value="CSH">
<input type="hidden" name="amount" value="5">
<input type="hidden" name="language" value="en">
<input type="hidden" name="email" value="test1@maktoob.com">
<input type="hidden" name="session_id" value="what do I type here?">
<input type="hidden" name="thanx_url" value="http://web.merchant.com/mk/confirm_CashU.asp">
<input type="hidden" name="txt1" value="Baseball Hat">
<input type=submit name=s value="Click here to pay by cashU card">
</form>
Can someone please help me place that :search and replace" here?
From reading you post, it would seem to me that what you need to do is populate the hidden input with the SessionID as the page renders. So, you would need to use you server side script to read the sessionID and then write the hidden input with a value that is the sessionID.
HTH