Adding a PHP code to a hidden field...
This is my test page so that you can get a visual if that helps.
user is: test
Pass is: harley
http://blackdogmastering.com/clientuplo … ormats.php
I am trying to bring this code:
<?PHP require($_SERVER['DOCUMENT_ROOT'] . "/login/ubvars2014.php"); print "<br />\n Username: $ub_username"; print "<br />\n UserID: $ub_userid"; print "<br />\n Email: $ub_email"; ?>
Into the form in a hidden field, but I can not get it to work. It works on the page itself as you can see on the left hand side of the page, but I can't figure out how to get this info into the form so that I know who is sending the form.
Thanks,
Andy
user is: test
Pass is: harley
http://blackdogmastering.com/clientuplo … ormats.php
I am trying to bring this code:
<?PHP require($_SERVER['DOCUMENT_ROOT'] . "/login/ubvars2014.php"); print "<br />\n Username: $ub_username"; print "<br />\n UserID: $ub_userid"; print "<br />\n Email: $ub_email"; ?>
Into the form in a hidden field, but I can not get it to work. It works on the page itself as you can see on the left hand side of the page, but I can't figure out how to get this info into the form so that I know who is sending the form.
Thanks,
Andy
Is your server setup to parse php inside an html page?
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
Eric
Thanks for the quick response. Yes, I have this handler in cpanel: Handler: x-httpd-php Extension: .html .htm
Where should I be entering this coding? Should it be in a .html field or a hidden field? or somewhere else?
Thanks for the quick response. Yes, I have this handler in cpanel: Handler: x-httpd-php Extension: .html .htm
Where should I be entering this coding? Should it be in a .html field or a hidden field? or somewhere else?
It looks like the php is not being parsed in the html. I don't know how your cpanel is set up but I make the change in the .htaccess file on the server. Another solution is simply to rename your form extension to .php.
Two other things to note:
1. When you do a manual export with FB, it gives you a javascript to put on your page. If you are calling the form with the javascript, it will not parse the php. You have to link directly to the form.
2. If you entered the php in a hidden field, when you manual export, the FB changes certain characters to their ASCII codes. You will have to manually change them back after export.
Two other things to note:
1. When you do a manual export with FB, it gives you a javascript to put on your page. If you are calling the form with the javascript, it will not parse the php. You have to link directly to the form.
2. If you entered the php in a hidden field, when you manual export, the FB changes certain characters to their ASCII codes. You will have to manually change them back after export.
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.
Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.
Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
Brian
You are absolutely right. I had to call the codes manually and it did change the < and > signs when exporting. Thank you so much for the help, I am very grateful!!!
Andy
You are absolutely right. I had to call the codes manually and it did change the < and > signs when exporting. Thank you so much for the help, I am very grateful!!!
Andy
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.