|
-
Nov 20th, 2006, 11:44 AM
#1
Thread Starter
New Member
some question in mind
Hi all, these are the problem i face and i have no idea how i should over come it. I need to direct the user to paypal page when he click the button order, in the mean while i need to call a function to select the Unique ID that is supposedly pass to paypal. But Paypal could not read it. the following is my coding:
<%
sub CreateID()
'some coding here to insert some data into database
dim ItemID
ItemID = "12345"
end sub
%>
<form name="RegForm" onSubmit="<%CreateID()%>" action="(URL address blocked: See forum rules)" method="post"style="margin: 0px;">
''some coding here
<input type="hidden" name="item_number" value="<%= ItemID %>">
</form>
But Paypal could not read it. The second Problem is the page call the CreateID when the page load instead of when the user click the order button.Can some one teach me what should I do?
Any help would be appreciated. Thx
-
Nov 21st, 2006, 10:07 PM
#2
PowerPoster
Re: some question in mind
Code:
<%
Function ItemID()
ItemID = "12345"
End Function
%>
<form name="RegForm" action="(URL address blocked: See forum rules)" method="post"style="margin: 0px;">
''some coding here
<input type="hidden" name="item_number" value="<%= ItemID %>">
</form>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|