How does one retain the value of a drop-down box when the form is re-loaded after a verification routine?
I have a dropdown box:
<select name="shiurFreq" size="1" tabindex="8" onchange="if(this.selectedIndex == 1)
{document.Frontpage_form1.shiurDateText.style.display='inline'...
I wish to convert 3 numbers (for example, 10, 5, 2004) to a date and then subtract that date from today's date.
I tried writing something like this
enteredDate = cInt(Request.Form("smonth")) & "/" & cInt(Request.Form("sday")) & "/" & cInt(Request.Form("syear"))
response.write date -...
Guys, please help a beginner! I can't find where I'm going wrong. I have the following dropdown box:
<select name="mLast" size="1" tabindex="8">
<option selected>Any Speaker</option>
<%=SF_GetSpeakerSELECT(Request.Form("mLast"))%>
</select>
This is populated by the following code...
When trying to insert a record into an Access database, I get the following error message:
strSQL:INSERT INTO shiur (username,slanguage,shiurFor,shiurType,sTitle,mTitle,mFirst,mLast,shiurFreq,date,time,sduration,venue,city,contact,comments,add_date,status) VALUES('smith',2,1,3,'Something...
Where in the code for a Drop-Down Box, does one place the ASP code for a cookie?
When I place it as shown below, I get an error message.
<select size="1" name="sDuration">
<option selected>Duration</option>
<option>05 min</option>
<option>10 min</option>...
Is there a way to ensure (and verify) that a viewer inputs the correct time - hours and minutes - WITHOUT having to put drop-down boxes on my page.
I could place two drop-down boxes on the page (one for the hours and one for the minutes), but ideally, I would like to see just an Input Box with...
I have an OPTION Box and an INPUT Box. When someone chooses as specific OPTION, then the INPUT Box must become visible, otherwise it must remain hidden.
I've tried the code below, but it doesn't work. Any advice?
<select name="Style">
<option selected>--Select Style--</option>...
I have a popup window that currently works for a specific 'surname' entry.
<a href="javascript:popup('send_email.asp?surname=<%=rsUsers("surname")%>',360,400,'no')">Send EMail</a>
My problem is how to write the same code using a surname AND first name. I seem to be having problems with the...
Is it possible to upload a single ACCESS table that resides on my local computer, and insert it into an ACCESS file that resides on a Web server?
NOTE: I don't want to upload the entire ACCESS file (which is over 50 mb in size). I just want to upload a smaller table.
If this is possible...
I'm using the simple code below to verify an email address. However, the line that reads
If InStr(1, email, ".", 1) < 4 Then
returns emailOK = 1.
Is there a syntax problem? Seeing that I am looking for the character "." I am not sure if the 'compare' parameter of inStr() be 1 (textual...
I have an include file with the following variables:
name1 = "Tom"
name2 = "Dick"
name3 = "Harry"
etc....
I now want a drop down box to include these names as options. Can't seem to get the syntax right for the Drop-Down box.
Can one use a variable in the Server.MapPath definition? And if so, what would the correct syntax be?
I have a line of code that reads:
strDBPath = Server.MapPath("..\..\db\masterdb.mdb")
I want to use a variable for the db file name eg:
currentDb = masterdb.mdb
I have an ACCESS database that is getting extremely large (>50mb) and is becoming very unwieldy to upload. Furthermore, the file is likely to grow considerably in the future.
I thought that it might be wise to begin a second database (let's call it 'DBFile2').
My first question is how does...
Probably a simple question, but...
A viewer selects a radiobox indicating "Exact Surname" or "Partial Surname". A variable called "SearchType" will then be assigned the value "=" or "LIKE"
My SQL code must then do a search using "=" or "LIKE' depending on which radiobox was selected.
I can't...
This is probably a simple question, but how does one format a table such that if a field is a certain value, then it will have a specific color.
For example, in the code below, if the specific field named "Year" is '2004' then I want it to appear in red, otherwise it should appear in black.
My...
Why is the user unable to download large .mp3 or .wav files with this code? It works perfectly well with small files.
(This is for you simonchristies... you helped me before)
<%
Set filesys = CreateObject("Scripting.FileSystemObject")
strWav = "/media/"&Request.Form("code1")&".mp3"...
Hi guys!
I have a form with 2 INPUT BOXES:
1) The user enters 4 letters from his name (lets call this code1).
2) The user enters 4 digits from his phone number (lets call this code2).
On clicking the SUBMIT BUTTON, the form must call a .wav file in a directory called "/media" which...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.