I'm using prepopulate to prepopulate a feild of a node/add/content
. I'm trying to generate a URL using some PHP code that willl generate a URL like:
http://mysite.com/node/add/content_type?edit[title]={$some_var}
Each of my user profiles will have this link at the top of the page and I would like $some_var
to hold the username of the user whos profile we are currently viewing. I was wonder how to populate $some_var
with the username of the user profile being viewed.
Something like:
$some_var = $username;
print("<a href=\"http://mysite.com/node/add/content_type?edit[title]={$some_var}\">Content Type</a>");