passing value from one page to another

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sva0008
    New Member
    • Apr 2008
    • 19

    passing value from one page to another

    hi , I am using.


    [HTML]<input type=button class=tbox value="Populate SA" style="width: 90%" onClick="window .location='../SA/Sample.asp?ToDo =FromFeed&Conta ctName=<%=First Name%>&Address= <%=Address%>&Ci ty=<%=City%>&St ate=<%=state%>& ZipCode=<%=Zip% >&Phone=<%=Cont actPhone%>&Note s=<%=Comments%> <%=resolution%> &ordDate=<%=Dat e%>';" >
    [/HTML]
    for passing value from one page to another but i want to take care of single quote . eg if the first name contains single quote it gives an error in loding a page.

    Thanks
    Last edited by acoder; Nov 14 '08, 05:56 PM. Reason: Added [code] tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Use encodeURICompon ent around each value, or set hidden fields in a form and use a submit button.

    Comment

    Working...