<?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: Mobile view not functioning properly when using PHP embed code.</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Mobile view not functioning properly when using PHP embed code.</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 20:40:43 +0000</pubDate>

<item>
<title>anujagrawal on "Mobile view not functioning properly when using PHP embed code."</title>
<link>https://www.machform.com/forums/topic/mobile-view-not-functioning-properly-when-using-php-embed-code#post-21862</link>
<pubDate>Tue, 23 Sep 2014 10:33:07 +0000</pubDate>
<dc:creator>anujagrawal</dc:creator>
<guid isPermaLink="false">21862@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ah!  Thanks so much!  That works!
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Mobile view not functioning properly when using PHP embed code."</title>
<link>https://www.machform.com/forums/topic/mobile-view-not-functioning-properly-when-using-php-embed-code#post-21847</link>
<pubDate>Mon, 22 Sep 2014 11:31:39 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">21847@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Is that the exact form code being used to embed your form? If so, that won't work indeed, as the URL is pointing to &#34;localhost&#34;. You need to change the URL with a valid IP address or domain to be accessible correctly from other devices.
&#60;/p&#62;</description>
</item>
<item>
<title>anujagrawal on "Mobile view not functioning properly when using PHP embed code."</title>
<link>https://www.machform.com/forums/topic/mobile-view-not-functioning-properly-when-using-php-embed-code#post-21799</link>
<pubDate>Wed, 17 Sep 2014 17:20:26 +0000</pubDate>
<dc:creator>anujagrawal</dc:creator>
<guid isPermaLink="false">21799@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;So the only code i have in my php file is:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php 

require(&#38;quot;C:/Users/developer/machform/machform.php&#38;quot;);

$mf_param[&#38;#39;form_id&#38;#39;] = 13634;
$mf_param[&#38;#39;base_path&#38;#39;] = &#38;#39;http://localhost/machform/&#38;#39;;
$mf_param[&#38;#39;show_border&#38;#39;] = true;
display_machform($mf_param);

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;On a desktop, as i shrink the browser window, it switches to mobile view.  But that does not happen on my smart phone.  Any thoughts as to why?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>anujagrawal on "Mobile view not functioning properly when using PHP embed code."</title>
<link>https://www.machform.com/forums/topic/mobile-view-not-functioning-properly-when-using-php-embed-code#post-21790</link>
<pubDate>Tue, 16 Sep 2014 09:51:32 +0000</pubDate>
<dc:creator>anujagrawal</dc:creator>
<guid isPermaLink="false">21790@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The only code i have in my &#34;main page&#34; is the embedded php code.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Mobile view not functioning properly when using PHP embed code."</title>
<link>https://www.machform.com/forums/topic/mobile-view-not-functioning-properly-when-using-php-embed-code#post-21772</link>
<pubDate>Mon, 15 Sep 2014 19:29:26 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">21772@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;When being embedded using the php embed code, the mobile view will completely depends on your main page layout/responsiveness.&#60;br /&#62;
If your main page is not responsive, then the form won't be responsive as well.
&#60;/p&#62;</description>
</item>
<item>
<title>anujagrawal on "Mobile view not functioning properly when using PHP embed code."</title>
<link>https://www.machform.com/forums/topic/mobile-view-not-functioning-properly-when-using-php-embed-code#post-21763</link>
<pubDate>Sun, 14 Sep 2014 20:43:52 +0000</pubDate>
<dc:creator>anujagrawal</dc:creator>
<guid isPermaLink="false">21763@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am having the same issue as the original poster (i.e. using php embed code does not display nicely on mobile device), and the fix suggested already exists in the version of MachForm I have.&#60;/p&#62;
&#60;p&#62;When viewing on a smart phone (Galaxy S4) or tablet (iPad 2), the page loads, but all the styles are not in effect.  :(&#60;/p&#62;
&#60;p&#62;When i try loading the same form via view.php, the styles are applied and the form looks awesome!  I would like the embedded form to load the same way.&#60;/p&#62;
&#60;p&#62;Anything else I could look at?
&#60;/p&#62;</description>
</item>
<item>
<title>Steve1951 on "Mobile view not functioning properly when using PHP embed code."</title>
<link>https://www.machform.com/forums/topic/mobile-view-not-functioning-properly-when-using-php-embed-code#post-17280</link>
<pubDate>Mon, 18 Feb 2013 09:12:43 +0000</pubDate>
<dc:creator>Steve1951</dc:creator>
<guid isPermaLink="false">17280@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks - That fixed it.  Support for this product is fantastic as usual.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Mobile view not functioning properly when using PHP embed code."</title>
<link>https://www.machform.com/forums/topic/mobile-view-not-functioning-properly-when-using-php-embed-code#post-17278</link>
<pubDate>Mon, 18 Feb 2013 08:48:47 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">17278@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you for reporting this. This seems to be a bug which affect the PHP embed code.&#60;br /&#62;
The fix is quite simple though. You can edit your &#34;includes/view-functions.php&#34; file. Search around line 4972 for this code&#34;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;{$view_css_markup}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;right below that line, insert this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;link rel=&#38;quot;stylesheet&#38;quot; type=&#38;quot;text/css&#38;quot; href=&#38;quot;{$machform_path}view.mobile.css&#38;quot; media=&#38;quot;all&#38;quot; /&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;that should fix it.
&#60;/p&#62;</description>
</item>
<item>
<title>Steve1951 on "Mobile view not functioning properly when using PHP embed code."</title>
<link>https://www.machform.com/forums/topic/mobile-view-not-functioning-properly-when-using-php-embed-code#post-17272</link>
<pubDate>Mon, 18 Feb 2013 00:04:48 +0000</pubDate>
<dc:creator>Steve1951</dc:creator>
<guid isPermaLink="false">17272@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The mobile view is not functioning properly when using PHP embed code.  It functions properly when using the link only.  If the screen width is less than 800px the mobile version should be displayed.&#60;/p&#62;
&#60;p&#62;Here is a sample using the link only - &#60;a href=&#34;http://www.schuckman-test.com/machform/view.php?id=5891&#34; rel=&#34;nofollow&#34;&#62;http://www.schuckman-test.com/machform/view.php?id=5891&#60;/a&#62; - This functions OK.&#60;/p&#62;
&#60;p&#62;Here is a sample of the same form using PHP embed code - &#60;a href=&#34;http://www.schuckman-test.com/test_of_php_emebd_code_mobile.php&#34; rel=&#34;nofollow&#34;&#62;http://www.schuckman-test.com/test_of_php_emebd_code_mobile.php&#60;/a&#62; - This does not function properly.&#60;/p&#62;
&#60;p&#62;Here is the PHP code I am using.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php session_start(); ?&#38;gt;
&#38;lt;!DOCTYPE html&#38;gt;
&#38;lt;html&#38;gt;
  &#38;lt;head&#38;gt;
    &#38;lt;title&#38;gt;Test of mobile forms using PHP Embed Code.&#38;lt;/title&#38;gt;
    &#38;lt;meta http-equiv=&#38;quot;content-type&#38;quot; content=&#38;quot;text/html; charset=utf-8&#38;quot;/&#38;gt;
  &#38;lt;/head&#38;gt;
  &#38;lt;body&#38;gt;

&#38;lt;?php
require(&#38;quot;/home3/removed/public_html/schuckman-test/machform/machform.php&#38;quot;);
$mf_param[&#38;#39;form_id&#38;#39;] = 5891;
$mf_param[&#38;#39;base_path&#38;#39;] = &#38;#39;http://www.schuckman-test.com/machform/&#38;#39;;
display_machform($mf_param);
?&#38;gt;

  &#38;lt;/body&#38;gt;
&#38;lt;/html&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
