Problem with pre-populating a form on...
I'm struggling to pre-populate a form on a Joomla article page. I've tried:
<iframe height="1605" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="/forms/redstpdf/redstpdf.html?title1=<?php echo $_GET['title1']; ?>">
with the Joomla extension DirctPHP enabled. But no luck. DirectPHP does work however as I can display system date/time on page.
I've also tried using the Windows Preview code directly onto the page. This works with the title added tot field but there is no submit button. I've added two extra lines of code using the HeadTags extension:
{headtag:script}/forms/common/js/form_init.js{/headtag}<br /> {headtag:stylesheet}/forms/redstpdf/theme/default/css/default.css{/headtag}
to try and replicate what I think should be in the header. 2 possible problems I think:
1. id="form_init_script".is missing
2. I can't include /forms/redstpdf in the statement url(/theme/default/images/btn_submit.png')
I'd prefer to use an iframe if I can. Is there a way to crack this using the iframe problem?
Thanks
Michael
<iframe height="1605" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="/forms/redstpdf/redstpdf.html?title1=<?php echo $_GET['title1']; ?>">
with the Joomla extension DirctPHP enabled. But no luck. DirectPHP does work however as I can display system date/time on page.
I've also tried using the Windows Preview code directly onto the page. This works with the title added tot field but there is no submit button. I've added two extra lines of code using the HeadTags extension:
{headtag:script}/forms/common/js/form_init.js{/headtag}<br /> {headtag:stylesheet}/forms/redstpdf/theme/default/css/default.css{/headtag}
to try and replicate what I think should be in the header. 2 possible problems I think:
1. id="form_init_script".is missing
2. I can't include /forms/redstpdf in the statement url(/theme/default/images/btn_submit.png')
I'd prefer to use an iframe if I can. Is there a way to crack this using the iframe problem?
Thanks
Michael
Have you tried this approach?
http://www.coffeecup.com/forums/web-for … le-to-wfb/
http://www.coffeecup.com/forums/web-for … le-to-wfb/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Thanks for looking at this Eric
If I put <?php echo $_GET['title1']; ?> above the form then the variable title1 displays.but it won't when displayed in the iframe: Interestingly, <?php echo $_GET['title1']; ?> doesn't show up in the form field either so I assume the php code is being parsed..
<iframe height="892" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="/forms/r22pdf/r22pdf.html?title1=<?php echo $_GET['title1']; ?>">
</iframe>
I've created a .htaccess file with 'AddHandler application/x-httpd-php .php .html .htm'
and placed it in the root folder of the form. Still no joy. I've also tried changing the iframe to reference the r22pdf.php file rather than the .html file. Same story.
Is there a way to check if the title1 variable is actually being parsed in the form but not just being displayed?
Thanks
If I put <?php echo $_GET['title1']; ?> above the form then the variable title1 displays.but it won't when displayed in the iframe: Interestingly, <?php echo $_GET['title1']; ?> doesn't show up in the form field either so I assume the php code is being parsed..
<iframe height="892" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="/forms/r22pdf/r22pdf.html?title1=<?php echo $_GET['title1']; ?>">
</iframe>
I've created a .htaccess file with 'AddHandler application/x-httpd-php .php .html .htm'
and placed it in the root folder of the form. Still no joy. I've also tried changing the iframe to reference the r22pdf.php file rather than the .html file. Same story.
Is there a way to check if the title1 variable is actually being parsed in the form but not just being displayed?
Thanks
Did you remove the script wrapping the iframe code?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Yes I did Eric. This is the only code in the article page:
<iframe id="fb_iframe" style="border: none; background: transparent; overflow: hidden; width: 100%;" src="http://www.reach22.com/forms/r22pdf/r22pdf.html?title1=<?php echo $_GET['title1'];?>" width="300" height="1605"></iframe>
Since then I've tried going direct to the form: http://www.red.st/forms/r22pdf/r22pdf.html?title1=test .using:
<input name="title1" id="item9_text_1" required type="text" maxlength="254" value="<?php echo $_GET['title1'];?>" placeholder="" data-hint="" autocomplete="off" /> and an .htaccess file in the folder with:
AddHandler application/x-httpd-php .php .html .htm and a URL of:
http://www.reach22.com/forms/r22pdf/r22 … itle1=test
...but no liuck. Is there anything else I could possibly try?
Thanks
Michael
The form works apart from populating the title field with <?php echo $_GET['title1'];?>
<iframe id="fb_iframe" style="border: none; background: transparent; overflow: hidden; width: 100%;" src="http://www.reach22.com/forms/r22pdf/r22pdf.html?title1=<?php echo $_GET['title1'];?>" width="300" height="1605"></iframe>
Since then I've tried going direct to the form: http://www.red.st/forms/r22pdf/r22pdf.html?title1=test .using:
<input name="title1" id="item9_text_1" required type="text" maxlength="254" value="<?php echo $_GET['title1'];?>" placeholder="" data-hint="" autocomplete="off" /> and an .htaccess file in the folder with:
AddHandler application/x-httpd-php .php .html .htm and a URL of:
http://www.reach22.com/forms/r22pdf/r22 … itle1=test
...but no liuck. Is there anything else I could possibly try?
Thanks
Michael
The form works apart from populating the title field with <?php echo $_GET['title1'];?>
Try placing the .htaccess in the root of your site.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.