Hi, I'm a complete newby to VBScript and am trying to figure out how to show an image using the IE browser. I've been trying to glean the information from tutorials but am obviously missing something, as it isn't working. My plan is to have the user enter an 8 digit number and then append ".jpg" to that and display that image. My code is:
As it is, it will write Your certificate is: 12345678.jpg, but if I comment out the line where I force 12345678 into CertNbr and try to get the value from the box, I get a page error. I also get nothing if I comment out the document.write and try to display the image whether or not I use the line where I hardcode the jpg or the line where I use the variable. Utlimately, I'd like to display the image if the jpg exists and display "no certificate found" if the jpg doesn't exist. Any help would be greatly appreciated.
Certificate Number
Certificate |
Comment