Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 14th, 2003, 08:24 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems

Can someone tell me what is wrong with my syntax. It says that it expects an end of statement. I'm sure its full with bugs but I have looked at it for days now. Thanks

Response.Write "<FORM method=""post"" action = ""http://wwwapps.ups.com/WebTracking/OnlineTool"">" & vbcrlf
Response.Write "<INPUT type=""hidden"" name=""SenderShipperNumber"" value=""993821"">" & vbcrlf
Response.Write "<INPUT type=""hidden"" name=""InquiryNumber"" value=<%=(oRS.Fields.Item("ID").Value + 1000)%> >" & vbcrlf
Response.Write "<INPUT type=""hidden"" name=""UPS_HTML_License"" value=""xxxxxxxxxxxxx"">" & vbcrlf
Response.Write "<INPUT type=""hidden"" name=""UPS_HTML_Version"" value=""3.0"">" & vbcrlf
Response.Write "<INPUT type=""hidden"" name=""TypeOfInquiryNumber"" value=""R"">" & vbcrlf
Response.Write "<td bgcolor=""" & sBGColor & """ align=""left"" valign=""top"" nowrap class=""checkout""><a href=""javascript:document.forms[0].submit();return false"">"" & oRS.Fields.Item(""ID"").Value + 1000</a>& "&nbsp;&nbsp;&nbsp;&nbsp;</td>" & vbcrlf
Response.Write "</FORM>" & vbcrlf

 
Old October 15th, 2003, 03:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Perhaps because you have have ASP in ASP in this line...
Code:
Response.Write "<INPUT type=""hidden"" name=""InquiryNumber"" value=<%=(oRS.Fields.Item("ID").Value + 1000)%> >" & vbcrlf
You are writing in ASP since you are using Response.Write, but you also use the '<% %>' pair to write some value.

Hope it is this, so you can go on

Jacob.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems already! KennySargent BOOK: Professional XNA Programming 2nd Edition ISBN: 978-0-470-26128-6 4 April 7th, 2008 03:36 AM
Have 2 problems so far... Soulcatcher BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 June 20th, 2007 12:57 PM
c problems saurabh1983in C++ Programming 6 November 29th, 2005 04:23 AM
validate.asp problems and logon.asp problems p2ptolu Classic ASP Databases 0 February 16th, 2005 02:34 PM
Problems kilika Javascript 1 October 3rd, 2003 02:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.