[irev] passing a parameter
Alex Tweedly
alex at tweedly.net
Thu Mar 22 04:54:39 EDT 2012
You pass the parameter in the URL using a name=value pair, like
http://kweto.com/receiveData.irev?month=Jan2012
or
http://kweto.com/receiveData.irev?day=12&month=Jan2012
Note that if you are passing this from a script, you should URLencode the value before passing it
put URLencode(mydata) into temp
get URL ("http"//kweto.com/receiveData.irev?keyname="& temp) into myreturnvalue
Within the itev script, you access the keyname value pairs form the&_GET array,
put $_GET["month" into tMonth
put URLdecode( $_GET["keyname"] ) into tData
-- Alex.
On 22/03/2012 05:30, Nicolas Cueto wrote:
> Hello All,
>
> I'm streamlining an already working irev setup, and have a two-part question.
>
> I have an url that connects to an irev script, and now want to also
> pass an id parameter thru that same url. For example:
>
> http://kweto.com/receiveData.irev?Jan2012
> http://kweto.com/receiveData.irev?Feb2012
> http://kweto.com/receiveData.irev?Mar2012
>
> How would I append that id parameter to the url? My examples above
> show "?", but that's just a wild guess on my part.
>
> Secondly, how can the irev script at
> "http://kweto.com/receiveData.irev" be modified to read in that id
> parameter from the url?
>
> Thank you.
>
> --
> Nicolas Cueto
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list