Announcement

Collapse
No announcement yet.

How to change form method to "GET"?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    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.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      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.

      Comment


      • #4
        How can i do that?

        Comment


        • #5
          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
          Albert Drent
          aducom software netherlands
          scriptcase partner, reseller, support and (turn-key) development
          www.scriptcase.eu / www.scriptcase.nl

          Comment


          • #6
            Thanks aducom , i will try

            Comment

            Working...
            X