You could also try sending the value in the URL then using the $_GET method and using the get method for the default value of the field.... 😛
Like I said. Obviously if your doing a check on the fields they both have names.
<?
$var = $_POST['imagevalue']; //or whatever you named it
$var2 = $_POST['name'];
//do your validation here
if((!$var) || (!$var2)){
echo 'You did not submit the following required information! <br />';
if(!$var){
echo "Please set a value for var1.<br />";
$name = "$var2";
}
if(!$var2){
echo "Please set a value for var2.<br />";
$default = "$var";
}
}
Then for the input where they type the path use something like:
<input type="text" name="name" value="<? if(isset($name)){echo"$name";}else{echo"";} ?>">
<input type="text" name="image" value="<? if(isset($default)){echo"$default";}else{echo"";} ?>">