Problem (or something I'm doing odd) with $_POST and LC Server
Alex Tweedly
alex at tweedly.net
Tue Sep 27 20:29:13 EDT 2016
OK - I have half an answer to my own question ....
The failing form starts with
<form action='ttt.lc' method='post' accept-charset='utf-8'
enctype='multipart/form-data'>
If I remove the enctype='multipart/form-data' part, it works OK.
Now I need to find out why I did that in the first place, or how to get
the same result in another way (the real form does allow file
specification / upload).
-- Alex.
On 28/09/2016 01:00, Alex Tweedly wrote:
> I have a script running happily on one web site, moved it over to
> another site and it totally fails; it's a complex script, but I was
> able to reduce it down to the following tiny script (see end of email).
>
> On the new site (hosted on on-rev), the $_POST array is empty, while
> on the other site (hosted on hostm) it properly contains the posted
> values.
>
> I do see bug 16745 - but that is Windows specific, and is about
> $_POST_RAW - so it's not that.
>
> Is there something I can do (or have done) in my config that would
> stop this working, or would be needed to make it work ?
>
> Working site is
> http://ua886128.serversignin.com/susanirvine.co.uk/ttt.lc7 (NB the
> .lc7 extension tells it to use version 7, so it gets 7.1.4)
>
> Failing site is http://melaniechmielewska.co.uk/ttt.lc
>
>
> Any or all suggestions welcome - I can't have a site that doesn't get
> any form input :-)
>
> The fallback is of course to just move this (and all my sites) to my
> hostm account but that doesn't feel right (yet).
>
> Thanks
>
> -- Alex.
>
> <?livecode
>
> put "get<br>" & cr
> repeat for each key K in $_GET
> put K && ":" && $_GET[K] & "<br>" & CR
> end repeat
>
> put "post<br>" & cr
> repeat for each key K in $_POST
> put K && ":" && $_POST[K] & "<br>" & CR
> end repeat
>
> put version()
>
> ?>
>
>
>
> <h1>my Form</H1><br><br>
> <br>
> <form action='ttt.lc7' method='post' accept-charset='utf-8'
> enctype='multipart/form-data'>
> <input type='hidden' name='c' value='admin'>
> <input type='hidden' name='m' value='upload'>
> <input type='hidden' name='action' value='doUpload'>
> <br>
> <select name="choose library">
> <option value="Corbels">Corbels</option>
> <option value="Archive">Archive</option>
> <option value="Recent">Recent</option>
> <option value="Thumbs">Thumbs</option>
> <option value="Commissions" selected="selected">Commissions</option>
> </select><br>
>
> <br /><br /><br>
> <input value="doit" type="submit" name="doit" /><br>
> </form><br>
>
>
>
>
> _______________________________________________
> 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