<?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: Error - URLS are being Appended with double // at end</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Error - URLS are being Appended with double // at end</description>
<language>en</language>
<pubDate>Wed, 06 May 2026 04:31:35 +0000</pubDate>

<item>
<title>yuniar on "[closed] Error - URLS are being Appended with double // at end"</title>
<link>https://www.machform.com/forums/topic/error-urls-are-being-appended-with-double-at-end#post-156</link>
<pubDate>Wed, 24 Oct 2007 06:29:13 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">156@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Ok, let's do the modification. In this case, the quick fix being said by mpivon above is the easy way to solve this issue.&#60;/p&#62;
&#60;p&#62;Search for code similar as below:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;header(&#38;quot;Location: &#60;a href=&#34;http://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].dirname&#34; rel=&#34;nofollow&#34;&#62;http://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].dirname&#60;/a&#62;($_SERVER[&#38;#39;PHP_SELF&#38;#39;]).&#38;quot;/manage_form.php&#38;quot;);&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and remove the slash, so it would be:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;header(&#38;quot;Location: &#60;a href=&#34;http://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].dirname&#34; rel=&#34;nofollow&#34;&#62;http://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].dirname&#60;/a&#62;($_SERVER[&#38;#39;PHP_SELF&#38;#39;]).&#38;quot;manage_form.php&#38;quot;);&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;There are few codes similar as above. And they are all scattered among these files:&#60;br /&#62;
1) index.php&#60;br /&#62;
2) edit_entry.php&#60;br /&#62;
3) includes/check-session.php&#60;br /&#62;
4) logout.php&#60;/p&#62;
&#60;p&#62;Make sure you check those files. That should fix the issue.&#60;br /&#62;
Sorry for this inconvenience.
&#60;/p&#62;</description>
</item>
<item>
<title>wftsl on "[closed] Error - URLS are being Appended with double // at end"</title>
<link>https://www.machform.com/forums/topic/error-urls-are-being-appended-with-double-at-end#post-154</link>
<pubDate>Tue, 23 Oct 2007 18:52:12 +0000</pubDate>
<dc:creator>wftsl</dc:creator>
<guid isPermaLink="false">154@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello Yuniar,&#60;/p&#62;
&#60;p&#62;Unfortunately I can't move it as it's already published on the intranet and will be easier for me to mod the code.&#60;/p&#62;
&#60;p&#62;If you tell me what to do it will be fine.&#60;/p&#62;
&#60;p&#62;I look forward to your reply.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "[closed] Error - URLS are being Appended with double // at end"</title>
<link>https://www.machform.com/forums/topic/error-urls-are-being-appended-with-double-at-end#post-150</link>
<pubDate>Tue, 23 Oct 2007 05:06:35 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">150@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ahh..okay so it runs under document root of a subdomain?&#60;/p&#62;
&#60;p&#62;Like this: &#60;a href=&#34;http://forms.domain.com/view.php?id=1&#34; rel=&#34;nofollow&#34;&#62;http://forms.domain.com/view.php?id=1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I suggest to move it under new folder. So it would become:&#60;br /&#62;
&#60;a href=&#34;http://forms.domain.com/form/view.php?id=1&#34; rel=&#34;nofollow&#34;&#62;http://forms.domain.com/form/view.php?id=1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That should solve the problem. Is that possible for you?&#60;br /&#62;
Otherwise we will need to modify the code a bit.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>wftsl on "[closed] Error - URLS are being Appended with double // at end"</title>
<link>https://www.machform.com/forums/topic/error-urls-are-being-appended-with-double-at-end#post-148</link>
<pubDate>Mon, 22 Oct 2007 21:53:19 +0000</pubDate>
<dc:creator>wftsl</dc:creator>
<guid isPermaLink="false">148@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;No problem to post here (by now :) ). It's a subdomain, so its something like forms.domain.com.&#60;/p&#62;
&#60;p&#62;The machform runs under a intranet so I can't give you a public URL, sorry. If you want I can give you my order details.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "[closed] Error - URLS are being Appended with double // at end"</title>
<link>https://www.machform.com/forums/topic/error-urls-are-being-appended-with-double-at-end#post-146</link>
<pubDate>Mon, 22 Oct 2007 21:37:20 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">146@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Are you installing MachForm under root folder?&#60;/p&#62;
&#60;p&#62;I suggest not to put MachForm under root folder, as MachForm currently having a small bug with it. This should be fixed for the next version. What's your MachForm URL? &#60;/p&#62;
&#60;p&#62;If you don't feel comfortable posting it here. Feel free to mail me at customer.service [at] appnitro.com&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>wftsl on "[closed] Error - URLS are being Appended with double // at end"</title>
<link>https://www.machform.com/forums/topic/error-urls-are-being-appended-with-double-at-end#post-143</link>
<pubDate>Mon, 22 Oct 2007 20:27:46 +0000</pubDate>
<dc:creator>wftsl</dc:creator>
<guid isPermaLink="false">143@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Just bought your product and I have the same problem. How can I get rid of it? &#60;/p&#62;
&#60;p&#62;I downloaded the version on the link provided bu the link of the purchase.&#60;/p&#62;
&#60;p&#62;Regards.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "[closed] Error - URLS are being Appended with double // at end"</title>
<link>https://www.machform.com/forums/topic/error-urls-are-being-appended-with-double-at-end#post-140</link>
<pubDate>Sat, 20 Oct 2007 06:16:24 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">140@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Just a note. Problem solved.
&#60;/p&#62;</description>
</item>
<item>
<title>mpivon on "[closed] Error - URLS are being Appended with double // at end"</title>
<link>https://www.machform.com/forums/topic/error-urls-are-being-appended-with-double-at-end#post-134</link>
<pubDate>Sat, 20 Oct 2007 02:40:59 +0000</pubDate>
<dc:creator>mpivon</dc:creator>
<guid isPermaLink="false">134@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;PHP 4 on Linux
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "[closed] Error - URLS are being Appended with double // at end"</title>
<link>https://www.machform.com/forums/topic/error-urls-are-being-appended-with-double-at-end#post-130</link>
<pubDate>Fri, 19 Oct 2007 12:58:21 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">130@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hmm.. that's odd.&#60;/p&#62;
&#60;p&#62;The code &#60;code&#62;dirname($_SERVER[&#38;#39;PHP_SELF&#38;#39;])&#60;/code&#62; actually should get current directory name without any trailing slash.&#60;/p&#62;
&#60;p&#62;What version of PHP do you use? also are you using Linux or Windows server?&#60;/p&#62;
&#60;p&#62;Also.. I've just replied back to your email.
&#60;/p&#62;</description>
</item>
<item>
<title>mpivon on "[closed] Error - URLS are being Appended with double // at end"</title>
<link>https://www.machform.com/forums/topic/error-urls-are-being-appended-with-double-at-end#post-129</link>
<pubDate>Fri, 19 Oct 2007 12:32:10 +0000</pubDate>
<dc:creator>mpivon</dc:creator>
<guid isPermaLink="false">129@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;First off, pretty slick app.  Some good stuff here.  &#60;/p&#62;
&#60;p&#62;Now, for a quick bugfix?  Seems like in some instances forms are loading up with a normal url (i.e. &#60;a href=&#34;http://www.Domain.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.Domain.com/&#60;/a&#62;) and in other instances domains are loading with a double // at the end when files are loading.  (i.e.:  &#60;a href=&#34;http://www.Domain.com//index.php&#34; rel=&#34;nofollow&#34;&#62;http://www.Domain.com//index.php&#60;/a&#62;)&#60;/p&#62;
&#60;p&#62;This poses a problem if a user presses the &#34;submit&#34; on a form that has error checking.  What happens is the url defaults back to the stuff after the //, and so we get &#60;a href=&#34;http://index.php&#34; rel=&#34;nofollow&#34;&#62;http://index.php&#60;/a&#62; -- y'see?&#60;/p&#62;
&#60;p&#62;I'm thinking it has something to do with the code where it says:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;header(&#38;quot;Location: &#60;a href=&#34;http://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].dirname&#34; rel=&#34;nofollow&#34;&#62;http://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].dirname&#60;/a&#62;($_SERVER[&#38;#39;PHP_SELF&#38;#39;]).&#38;quot;/manage_form.php&#38;quot;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Should this actually read:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;header(&#38;quot;Location: &#60;a href=&#34;http://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].dirname&#34; rel=&#34;nofollow&#34;&#62;http://&#38;quot;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].dirname&#60;/a&#62;($_SERVER[&#38;#39;PHP_SELF&#38;#39;]).&#38;quot;manage_form.php&#38;quot;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;i.e.:  no &#34;/&#34; before the &#60;code&#62;manage_form.php&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;See code index.php line 18, 24 and 44 - as well as elsewhere in the source.&#60;/p&#62;
&#60;p&#62;Does this exist elsewhere?&#60;/p&#62;
&#60;p&#62;I can show you on my install, if you wish.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
