I have an online registration form that the user has to fill-out in order to register a customer. Part of the form includes a section where the user needs to attach a picture of the customer onto the form that he/she is filling out (at this point the user has already taken the customer's picture with a webcam and stored the file onto the local computer- saved as: the customer's last name & the last 4 digits of the customer's driver's license). I am having trouble figuring out how to accomplish this. The following code is what I have so far:
<head>
...
<script language="JavaScript" type="text/JavaScript">
<!--
var file1 = ""
function attachfile1() {
file1 = (document.custregform.authlastname1.value) & (document.custregform.driverlicense1.value) & ".jpg";
history.go();
}
function getFile1() {
return file1;
}
//-->
</script>
</head>
...
//Image Tag That Holds Picture
<td><img src="javascript: return getFile1();" /></td>
...
//Input Driver's License Number
<td colspan="2" class="field"><input type="text" name="driverlicense1" maxlength="25" size="25"></td>
...
// Input Last Name
<td colspan="2" class="field"><input type="text" name="authlastname1" maxlength="25" size="25"></td>
...
//Attach File to Current Page (Goto Function attachfiel1())
<td><input type="button" value='Attach' id="Submit3" name="submit1" onclick="attachfile1()"></td>
I hope all this is clear...thx in advance
<head>
...
<script language="JavaScript" type="text/JavaScript">
<!--
var file1 = ""
function attachfile1() {
file1 = (document.custregform.authlastname1.value) & (document.custregform.driverlicense1.value) & ".jpg";
history.go();
}
function getFile1() {
return file1;
}
//-->
</script>
</head>
...
//Image Tag That Holds Picture
<td><img src="javascript: return getFile1();" /></td>
...
//Input Driver's License Number
<td colspan="2" class="field"><input type="text" name="driverlicense1" maxlength="25" size="25"></td>
...
// Input Last Name
<td colspan="2" class="field"><input type="text" name="authlastname1" maxlength="25" size="25"></td>
...
//Attach File to Current Page (Goto Function attachfiel1())
<td><input type="button" value='Attach' id="Submit3" name="submit1" onclick="attachfile1()"></td>
I hope all this is clear...thx in advance