I have a user fill in a form.
There is a "gallery address" field and a "zip" field.
If the gallery address field is filled in (http://www.gallery.com), I want the output of the form to be a link to http://www.gallery.com
If the gallery address field is not filled, and the zip field is filled (123whatever.zip), I want the output of the form to be a link to the zip file - http://www.victorlinphoto.com/photodownloads/123whatever.zip
$photos="none"
if ($_POST["gallery"]=="")
{
$photos="http://www.victorlinphoto.com/photodownloads/" . $_POST["zip"];
}
else
{
$photos=$_POST["gallery"];
}
There is a "gallery address" field and a "zip" field.
If the gallery address field is filled in (http://www.gallery.com), I want the output of the form to be a link to http://www.gallery.com
If the gallery address field is not filled, and the zip field is filled (123whatever.zip), I want the output of the form to be a link to the zip file - http://www.victorlinphoto.com/photodownloads/123whatever.zip
$photos="none"
if ($_POST["gallery"]=="")
{
$photos="http://www.victorlinphoto.com/photodownloads/" . $_POST["zip"];
}
else
{
$photos=$_POST["gallery"];
}