This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
Problem with browse button
Started 12 years ago by arturom | 5 posts |
-
Hello,
I recently upgraded to MachForm 3 and I'm loving it! I do have a question regarding the PHP Form file code Type. It's working fine except that the "browse" (for file upload) button is not working.
This same button works fine if I use the Javascript or PHP Embed Code instead but not on the PHP Form file. How can I fix this?
The reason I'm using the PHP form file is that it keeps all the CSS styling from the theme I worked and saved on the backend. I guess the other part of the question would be how to apply custom CSS themes created on the backend to the Javascript or PHP Embed code.
Thanks a lot!
Posted 12 years ago # -
This is most likely subdomain/domain path issue within the embed code.
So, let say you embed the form into this page: http://www.example.com/mypage.phpMake sure that your embed code is having path similar like this:
$mf_param['base_path'] = 'http://www.example.com/machform/';
if your embed code is having this path instead:
$mf_param['base_path'] = 'http://example.com/machform/';
this won't work. Note the "www" difference.
Or if you could post the URL of your page, I might be able to check it directly.
MachForm Founder
Posted 12 years ago # -
Thanks Yuniar,
It worked great once I added the www to the embed code.
But what it the user goes to the page without typing the www at the beginning? I mean if on their browser they type: 'example.com/test.php' instead 'www.example.com/test.php' ?
Thank you very much!
Posted 12 years ago # -
There may be a way to resolve the issue, e.g. in cPanel, under the "Domains" section, choose "Redirects" and set up the 301 Redirect option there - ask your host for assistance; with a Redirect 301 in place it means if the user puts in http://yoursite.com, it redirects to http://www.yoursite.com.
You would need to adapt the procedure to whatever 'control panel' your hosting service uses.
Posted 12 years ago # -
Thanks a lot AMurray, worked great!
Posted 12 years ago #
Reply
You must log in to post.