ID:270455
May 15 2006, 11:23 am
|
|
How would I go about displaying a form in DMCGI? I created the form using the Form datum.
|
May 15 2006, 11:48 am
|
|
The form datum? You'd have to use HTML.
|
In response to Crashed
|
|
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 |
In response to Airjoe
|
|
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. |
In response to PirateHead
|
|
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. |
In response to Airjoe
|
|
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?
|
In response to Sniper Joe
|
|
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. |
In response to Airjoe
|
|
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.
|
In response to Sniper Joe
|
|
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. |
In response to Nadrew
|
|
CGI Example of manually doing things, rather than using libraries such as hub://Deadron.htmllib. |
In response to King Gunnerblast
|
|
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..
|
In response to Sniper Joe
|
|
=P Ok just didn't notice a ref. =)
|