<form id=upload2 name=upload2 action= "photo_diy2.asp" Method=post onsubmit= "return Validatediy (this);" Target=_ Blank>
<tr height=50>
<TD valign= "Bottom" > or:</td>
<TD valign= "Bottom" > found a good picture in the Web browsing want to directly processing edit, please enter the URL of this picture. </td>
</tr>
<tr>
<TD align= "Right" ><input type=hidden name= "Uploadtype" value=1></td>
<td><input type= "text" name= "Picurl" value= "http://" size=75>
<input type= "Submit" value= "Next" ></td>
</tr>
<input name= "UploadFile" type=hidden>
</form>
JS function
function Validatediy (aform)
{
if (aform.uploadtype.value==1) {
if (!aform.picurl.value | | (aform.picurl.value== "http://"))
{
Alert ("Please enter the network address of the picture you want to send!") ");
AForm.picurl.focus ();
return (false);
}
Else
{
Aform.uploadfile.value=aform.picurl.value;
aform.action= ' photo_diy2.asp?uploadtype=1 ';
return (true);
}
}
else if (aform.uploadtype.value==0) {
if (!aform.picfile.value) {
Alert ("Please enter the local picture in your computer!") ");
AForm.picfile.focus ();
return (false);
}else{
if (Checkpic ()) {
Aform.uploadfile.value=aform.picfile.value;
aform.action= ' photo_diy2.asp?uploadtype=0 ';
return (true);
}else{
return (false);
}
}
}
}