Default value from page variable not URL

Permalink Browser Info Environment
I have seen you can pass a value into a default value using a id in the url of the page.

Is it possible to place the variable in the page and then call it? into the form?

so if I have
http://www.mysite.com/?myID=hello

could I just put

$myID = 'hello' in my page and would this be pulled in?

Type: Discussion
Status: New
TMDesigns
View Replies: View Best Answer
mingis replied on at Permalink Reply
mingis
BUMP

I'd also be very interested in this functionality.
jgarcia replied on at Permalink Best Answer Reply
jgarcia
This is sorta hacky, but you could just do

$_GET['myID'] = 'hello';


and that would work, as long as it executes before the form is rendered.
TMDesigns replied on at Permalink Reply
TMDesigns
That worked a treat, thanks.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.