How to change form method to "GET"?

Hello,

I am new to scirptcase. and i was creating a form application. now i want to pass variable to this form in URL using GET method.

How do i change form method to GET ?

Thanks in Advance,
Sandeep

I think I don’t understand fully. If you want to pass variables to any php application and you do that using the url then the fields arive in the application in a standard php way. Nothing magical about that. Has nothing to do with post or get of a form. You are not able to influence the method of the form created in scriptcase afaik. But I don’t see why you should want to. Passing variables between applications in scriptcase is done by creating links, global variable or by macro sc_redir.

Thanks for the reply.

What i am trying to do is: I have a php application in scriptcase . i will use this application link in my other website. from this website i will pass the parameter in URL to php application. and it will use those parameters to load data.

How can i do that?

You will call your scriptcase application from another application using get variables? If the SC application is started it will follow some events, like onapplicationinit and onscriptinit. There you can pickup your url variables and assign them to scriptcase internals like the fields on the form. To pick them up you can use the standard way like:

{myfieldformvar}=$_GET[“age”];

where {} refers to the name of a field on your form, and a ?age=22 to the url

Thanks aducom , i will try