Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to pass URL of current page to form field on linked to page? Reply To: How to pass URL of current page to form field on linked to page?

#177641
Matt
Participant

Thanks Alen, I wasn’t sharing that link for you to visit, but as an example of how I was passing the parameter.

I have been working on it in PHP, but the problem is that WordPress doesn’t let you execute PHP within a page. I tried a couple of the plugins that let you execute PHP in a page but they are all throwing errors just installing them.

I guess I need to make a new page template for this?

<?php echo '<input id=\"00N9000000ApJSm\" maxlength=\"255\" name=\"00N9000000ApJSm\" size=\"20\" type=\"text\" value=\"'.$last-page.'\"/>'; ?>

BTW, why doesn’t the Block Code function work very well?