I have the following command which could not work.
I need to add the number "1" behind the variable.
if ($line =~ /(SPEC:)(\w{2})/){
$line=~s/(SPEC:)(\w{2})/$1$21/;
}
print OUT ("$line");
Hi, I have the following code to validate the fields of a form. I have 20 of such field (filesize1, filesize2,...,filesize20). Can anyone help to advise me on what to add to this code so that it can loop through all the 20 variables? Bascially, I need to change the filesize variable so that it...
I have 6 textboxes where user can input data (or can leave it blank). I need to insert all the data (if not blank) into the database. How should be SQL query be like?
insEntrydate = pd(DAY(date()),2) & "." & pd(MONTH(date()),2) & "." & pd(YEAR(date()),2)
insOwner = Request.Form("txtselOwner")...
Hi,
I have found in the forum examples or 2 dropdown lists and 3 dropdown list. Does anyone have any idea how to do 4 or more dropdown list? I tried to modify it from an example script found here but failed.
This is what I have done after modification:
<%
Function QuadLinkedList(oCon...
Hi,
I am not sure how to start doing this so I hope to get some advice as to how to start.
I have 2 files. The source file contains data that I needed is in columns delimited by ";". For example, in this format:
"CONTINENT","COUNTRY","CITY","ID"
"asia","japan","tokyo","123"...
Hi, I have the following forms which allow the user to input the blank fields by choosing the value from dropdown list(existing data in database) or manually input the data in the blank field.
I need to do a dynamic drop-down list where after I choose the value in the 1st drop down list, the...
Hi,
I need to create a file with the same filename as another file in another directory but without the contents.
For example, I have:
originaldirectory/oldfile.zip size:1234kb
I need to create:
newdirectory/oldfile.zip size:no contents - 0kb
Hi,
I have 2 directories, 1st dir with actual files and the 2nd dir with files with zero contents. What command in unix can I use to check for every file in 2nd dir, whether there is a matching filename in 1st dir.If no matching, delete it; if yes, go to next file.
For example,
1st dir...
Hi I have the following script and have problem debugging the problems. The function of this script is to make sure the entire file is being received (the filesize of a data is not changing after 20 seconds) and start moving the file to another directory. This script should be started every...
Hi,
I have 2 files with contents in them and I need to compare each item in each file.
File1:
item4
item5
File2:
item2
item3
item5
item6
The items names can be of different lengths.
If the items in the File1 are not in File2,
delete the missing item in File1.
The resulting File1 in the...
Hi,
I have a table with values in each cells but I do not want the size of the table to become smaller when I resize the window browser smaller. Especially when I resize the vertical part of the window browser, the table will move in and become thinner too.
How can I do this?
Hi, I have the following java function that validate the form for numerical values:
function validate_numeric(field, alerttxt)
{
with (field)
{
var strValidChars = "0123456789";
var strChar;
var blnResult = true;
for (i = 0; i < value.length && blnResult == true; i++)
{...
Hi, I am running the 1st script after a form has been submitted.
<%
DIM insNAME, insYEAR, insRATING
insNAME = Request.Form("txtselName")
insYEAR = Request.Form("txtselYear")
insRATING = Request.Form("txtselRating")
sqlcheck="select * from subdb_subcon_rating WHERE NAME LIKE '"&insNAME&"' AND...
I have the following form with 2 columns in each line. 1st column is a empty text box which allow user to key in text and the 2nd column is a drop-down box which allow user to choose the existing records from database.
I need to copy the selected record from the drop-down box to the empty...
I have the following code but the alert pop up did not appear when I leave the compulsory fields empty. Everything looks OK to me because it was working some time ago but I am not sure if I changed something and it can't work now. Can someone please point out the error to me?
<html>
<font...
I have the following code but the alert pop up did not appear when I leave the compulsory fields empty. Everything looks OK to me. Can someone please point out the error to me?
<html>
<font face=tahoma size=3>
<script type="text/javascript">
function validate_required(field,alerttxt)
{...
Hi, I posted this in another thread but realise the title shd change so I posted this problem with another title:
The "returnvalue" in the VBscript could not be parsed to the ASP if-else statement. Anyone can help?
<%
DIM NAME, YEAR, RATING, returnvalue
NAME = Request.Form("NAME")
YEAR =...
I have the following script which insert the data after the user choose yes or no. But when I click on no, the script still insert the data. I could not find out the reason why. Anyone can help?
<%
DIM NAME, YEAR, RATING
NAME = Request.Form("NAME")
YEAR = Request.Form("YEAR")
RATING =...
I need a blank textbox which allow user to select a list of existing records in the database. But if the desired value is not in the database, the user can key in the new value in the blank textbox. This value is to be inserted into the database. I can use "select" to list the values and use...
I need a blank textbox which allow user to select a list of existing records in the database. But if the desired value is not in the database, the user can key in the new value in the blank textbox. This value is to be inserted into the database. I can use "select" to list the values and use...
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.