<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Default photo?</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Default photo?</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 11:17:20 +0000</pubDate>

<item>
<title>yuniar on "Default photo?"</title>
<link>https://www.machform.com/forums/topic/default-photo#post-9206</link>
<pubDate>Thu, 15 Apr 2010 19:01:40 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">9206@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This is possible, however I'm afraid this one would be pretty much beyond MachForm.&#60;br /&#62;
It's actually pretty simple task, but require lot of coding and adjustments.&#60;/p&#62;
&#60;p&#62;I suggest to get programmer to do this custom page for you. It should be a straight forward task for most PHP programmer.
&#60;/p&#62;</description>
</item>
<item>
<title>isak on "Default photo?"</title>
<link>https://www.machform.com/forums/topic/default-photo#post-9197</link>
<pubDate>Thu, 15 Apr 2010 01:00:10 +0000</pubDate>
<dc:creator>isak</dc:creator>
<guid isPermaLink="false">9197@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am displaying my photos with this code:&#60;/p&#62;
&#60;p&#62;[code]&#38;lt;img src=&#34;http://sandragunn.com/listings/data/form_7/files/&#38;lt;?php echo $row_rsVarpass['element_158']; ?&#38;gt;&#34; alt=&#34;Sandra Gunn Properties in Houston &#124; Houston Real Estate&#34; /&#38;gt;&#60;br /&#62;
            &#38;lt;?php echo $row_rsVarpass['element_167']; ?&#38;gt;[/code]&#60;/p&#62;
&#60;p&#62;I have 8 photos on the page and want to extend it to possibly 20. &#60;/p&#62;
&#60;p&#62;If the value in a photo box is empty, I would like to default to an image called &#34;transparent.gif&#34; so I don't get the broken link image.&#60;/p&#62;
&#60;p&#62;Is this do-able?
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Default photo?"</title>
<link>https://www.machform.com/forums/topic/default-photo#post-8207</link>
<pubDate>Tue, 22 Dec 2009 07:51:16 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">8207@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;How you manage the code to display a photo from machform in your web page?  I think you can use something like this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$query = &#38;quot;select element_1 from ap_form_15&#38;quot;;

$result = do_query($query);

while($row = do_fetch_result($result)){
	if (empty($row[&#38;#39;element_1&#38;#39;])) {
		//code to show broken image or default image
	} else {
		//code to show the file from machform
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The flow is like this, first it will query a data from form 15 with element 1 as an upload field. Then if element_1 have empty value it will show broken image, otherwise it will show the photo from machform data.
&#60;/p&#62;</description>
</item>
<item>
<title>isak on "Default photo?"</title>
<link>https://www.machform.com/forums/topic/default-photo#post-8205</link>
<pubDate>Tue, 22 Dec 2009 04:36:31 +0000</pubDate>
<dc:creator>isak</dc:creator>
<guid isPermaLink="false">8205@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have a form that allows users to upload up to 8 photos. The info from my form is displayed on a webpage. Is there a way to link to a &#34;blank&#34; photo by default? Otherwise, if a photo is not uploaded, I am getting a broken link graphic.&#60;/p&#62;
&#60;p&#62;I already have several that have been uploaded via the form to my database. &#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
