Click to See Complete Forum and Search --> : Passing variables


The Chancer
05-09-2003, 09:55 AM
I have a form that passes filenames which I cannot control. (uploaded by users via PHP) one of these is called dothis.php

The code I use picks up the filename (through PHP) and sends it to the javascript to send the form and initiate the download script.

There is an error though, in that dothis.php isn't passed, as the word this is changed to the <select> name.

Is there any way round this at all ?

Cheers,

The Chancer

gil davis
05-09-2003, 11:04 AM
The only way that could have happened is something in the select tag that passes the wrong parameter triggered by an event. You'll have to at least post the HTML for the form.

The Chancer
05-12-2003, 03:13 AM
In order to shorten this post - please see the uploaded file below.

Many Thanks

The Chancer

The Chancer
05-12-2003, 03:14 AM
In order to shorten this post, please see the attached file below.

Many Thanks,

gil davis
05-12-2003, 03:19 PM
Your post doesn't even load into my browser correctly. I assume it has something to do with the scripts and the style sheet you have not included. Please zip them up and attach the zip file to your reply )see "Attach file" below "Your reply").

khalidali63
05-12-2003, 03:45 PM
LOL.....darn...
It would have been really gooad for this forum and for all who look at this post,if you just uploaded the file as .txt attachement...

The Chancer
05-13-2003, 03:21 AM
I was not at my computer - and could only get the files through via that method...

Here is the zipped copy...

You'll need a PHP enabled server (only tested on Win32 platform so far - but should work on *nix) with access to filesystem commands.

The Chancer
05-14-2003, 04:54 AM
Just thought of another way to phrase the question...

Is there a way of having a variable in Javascript in some sort of parentheses so that is will be unaffected by the "this" command (?) in javascript... ?

Cheers,

The Chancer
05-15-2003, 03:48 AM
This problem has now been sorted by using PHP function str_rot13 to change the letter ordering of the filename to an incomprehensible one, and not dothis.php.