Welcome Guest ( Log In | Click here to Register a free account now! )
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.| Important Announcement: We have a terrific contest still running on the site that I wanted all our members and guests to know about. The chance to win two Seagate FreeAgent external hard drives. More information about this contest can be found here. I suggest everyone submit an entry for them. - BleepingComputer Management |
![]() ![]() |
Aug 6 2004, 02:02 AM
Post
#1
|
|
|
New Member ![]() Group: Members Posts: 8 Joined: 12-July 04 Member No.: 1,379 |
Your help wil be appreciated! This is my code that goes inside my Form: <select name="Month"> <OPTION value="" selected>Month</OPTION> <OPTION value="1">Jan</OPTION> <OPTION value="2">Feb</OPTION> ... <OPTION value="11">Nov</OPTION> <OPTION value="12">Dec</OPTION> </SELECT> / <select name="Year"> <OPTION value="" selected>Year</OPTION> <OPTION value="<%response.write(Year(date()))%>">="<%response.write(Year(date()))%></OPTION> <OPTION value="<%response.write(Year(date())+1)%>"><%response.write(Year(date())+1)%></OPTION> <OPTION value="<%response.write(Year(date())+2)%>"><%response.write(Year(date())+2)%></OPTION> <OPTION value="<%response.write(Year(date())+3)%>"><%response.write(Year(date())+3)%></OPTION> </SELECT> <% xExpdate = MonthYear '----This doesn't sound right(?) %> <input type="hidden" name="EXPDATE" value="<%response.write(xExpdate)%>"> |
|
|
|
Aug 6 2004, 05:50 AM
Post
#2
|
|
![]() Forum Regular ![]() ![]() ![]() Group: Members Posts: 189 Joined: 11-April 04 From: East Tennessee Member No.: 122 |
Doesn't ASP use ampersands to concatenate?
CODE <%
xExpdate = Month & Year %> This post has been edited by HuckerJ: Aug 6 2004, 05:52 AM -------------------- There are 10 kinds of people. Those who understand binary notation, and those who do not.
- It plays, it streams, it kills WiMPs!! |
|
|
|
Aug 6 2004, 01:03 PM
Post
#3
|
|
|
New Member ![]() Group: Members Posts: 8 Joined: 12-July 04 Member No.: 1,379 |
Unfortunatelly your option didn't work.
When you submit the form, the values for month and year are submitted directly without asigning the value for EXPDATE. Therefore EXPDATE goes null Please any other options? Thx! |
|
|
|
Aug 7 2004, 08:53 AM
Post
#4
|
|
![]() Forum Regular ![]() ![]() ![]() Group: Members Posts: 189 Joined: 11-April 04 From: East Tennessee Member No.: 122 |
I see....
Try this: CODE dim 1, 2, xExpdate : 1 = request("month") : 2 = request("year") : xExpdate = 1 & 2
This post has been edited by HuckerJ: Aug 7 2004, 08:56 AM -------------------- There are 10 kinds of people. Those who understand binary notation, and those who do not.
- It plays, it streams, it kills WiMPs!! |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 5th December 2008 - 12:35 PM |