Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attach IMG to Page After Button Click...

Status
Not open for further replies.

Aamin

Programmer
Oct 2, 2002
18
0
0
CA
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 :)
 
Did you not notice the answers you received when you asked this question last week? thread333-931581
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top