ID:263094
 
Problem description:
I am not understanding how to get the value of the form input and send it to DM for I could...in example, store it as a variable.
Code:
                
CGI
New()
Hits ++
Save_Counter()
Topic(href,href_list[])
var/Display
if(href in Pages)
Display = Pages[href]
else
Display = Pages["404"]
if(href_list["form"])
switch(href_list["form"]) //handy for multiple forms
if("form1")
Display+={"<b>Your name</b>: [href_list["name"]]<br>"}
usr.name = "[href_list["FirstName"]]"

Display += "<br><br>Hits:[Hits]"
Display+={"
<form>
<form name="form1" action="
[world.url]" method="get">
First name:<input type="text" name="FirstName" value="
[usr.key]">
<input type="submit" value="Submit">
</form>
"}


usr << browse(Display)




I think your action is wrong. It should probably be "[world.url]/whatever.dmb?" or something, right? It's been a long time since I've done DMCGI, maybe I'm off base.