Posted by Steve on 10/26/12 11:42
"Tyxod" <yrizos@gmail.com> wrote in news:1142427614.295685.117830
@i39g2000cwa.googlegroups.com:
> "Try a javascript newsgroup." - nope this is more of an html question.
> Maybe try an html newsgroup, as this is a common html mistake...
>
> Anyway, the problem is that you are passing a get variable here
> (instead of a post var):
>
> $s_download_action = "index.$phpEx?page=downloads";
>
> which is the wrong way to sumbit a get variable through an html form
> anyway. Especially when you declare:
>
> method="post"
>
> The possible solution is to have a hidden field like:
>
> <input type="hidden" name="something" value="$s_download_action">
>
> and then catch that in the popup as:
>
> $s_download_action_is=$_POST['something'];
>
> of course, if you wish to use
>
> method="get"
>
> then the above would be
>
> $s_download_action_is=$_GET['something'];
>
the variable I am trying to obtain is a hidden var
$hidden_download_vars = '<input type="hidden" name="download_id"
value="' . $d_id . '" />';
which is in the form like this
echo '<form action="' . $s_download_action . '" method="post">';
echo $hidden_download_vars . '' . $u_download;
echo '</form>';
the get var your on about in the form element is not the var i am trying
to obtain in the popup window. I need the download_id var as above.
will try it as GET anway and see what happens.
thanks.
Navigation:
[Reply to this message]
|