ID:2163824
 
(See the best response by Nadrew.)
Code:
var/searchform = {"<form name='searchform' action='byond://' method='get'>
<p>
<input type='hidden' name='action' value='searchedit' />
Search<br />
<input type='text' name='searchedit' size='15' /><input type='submit' value='Search' />
"}

var/searchformend = {"
</p>
</form>
"}


Problem description:
I'm trying to use forms with an edit system, and I can't seem to figure out a way to include a \ref macro reference to an object. This is a search form to traverse an object's variables. Does anyone have experience with this?
Best response
If you want the src parameter to be passed you'd want to include it as a hidden form element like your action parameter.

<input type="hidden" name="src" value="\ref[src]">


As you're using a variable to hold your html, you'd probably want to build the variable in Login() or New(), or simply as needed when the form is being displayed.
Ah, so I can use multiple hidden inputs, cool :)
Thanks!
Yep, just like normal HTML forms (which it is), you'll have those hidden values passed through Topic() with everything else (and if there's a 'src' value there with a proper reference it'll call atom/Topic() on said thing).
In response to Nadrew
Good thing. Seems like the name attribute is it's name in href_list, and the value attribute is the value associated to the name in said list.
Right, it's formatted

href_list["parameter"] = value