ID:270455
![]() May 15 2006, 12:23 pm
|
|
How would I go about displaying a form in DMCGI? I created the form using the Form datum.
|
![]() May 15 2006, 12:48 pm
|
|
The form datum? You'd have to use HTML.
|
Ok..I have it set using like that form lib demo thing, I created a form. How do I make it show up in DMCGI..Like here.
CGI Then the form. Form |
No, he shouldn't have to do that. The forms library is there so you don't have to do all the HTML yourself.
There is documentation with the Forms library. Look in it, and it shows you how to do these things. |
PirateHead wrote:
No, he shouldn't have to do that. The forms library is there so you don't have to do all the HTML yourself. I don't see why not. I mean yeah, if you know DM, using the Form library may be easy, but <form> <input name="whatever"> <input type="submit" value="Submit"> </form> Is not exactly hard. |
Ya I know how to make a form...I said that already, I was asking how to use the other Form datum thing becuase how else would I get the data and send it back to DM?
|
Sniper Joe wrote:
Ya I know how to make a form...I said that already, I was asking how to use the other Form datum thing becuase how else would I get the data and send it back to DM? Check out my DMCGI Tutorial. |
I've read it, but it stops at the bottom without telling me how to get the value and send it to DM to set as a variable or something.
|
Sniper Joe wrote:
I've read it, but it stops at the bottom without telling me how to get the value and send it to DM to set as a variable or something. Re-read section 4. It shows how to use href_list to get the value of a variable of a form. If for some reason you want to use an actual variable (perhaps modifying it?) you can do: var/whatever=href_list["inputname"] |
The CGI library is designed for the HTMLlib, simply do something like:
Form As for displaying forms otherwise, you simply need to call the DisplayForm() proc. var/Form/my_form = new() Although using pure CGI is better since you have more options, you should really check into working without the HTMLlib. |
CGI Example of manually doing things, rather than using libraries such as hub://Deadron.htmllib. |
As I stated, I already did that, I am looking for a way to intergrate that inside a BYOND DMCGI page...but Android the data has already helped another way..
|