Results 1 to 2 of 2

Thread: some question in mind

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    1

    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

  2. #2
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    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
  •  



Click Here to Expand Forum to Full Width