You are here: Re: passing vars - popup window problem « PHP Programming Language « IT news, forums, messages
Re: passing vars - popup window problem

Posted by Jerry Stuckle on 11/18/35 11:42

Steve wrote:
> Hi,
>
> I currently have a problem passing a variable value from one page to
> another. Once a form submit button is pressed java pops up a window and
> displays some information. The problem being is variables value needs to
> be passed from the main page to this popup window ... but it isn't. why?
>
>
> the submit button one the PHP page is
>
> $s_download_action = "index.$phpEx?page=downloads";
>
> $download_url = "download.$phpEx";
>
> $hidden_download_vars = '<input type="hidden" name="download_id"
> value="' . $d_id . '" />';
> $u_download = "<input type=\"submit\" name=\"get_download\" value=\"" .
> $lang['Download'] . "\" class=\"mainoption\" onClick=\"window.open('" .
> $download_url . "', '_spdownload', 'HEIGHT=250,resizable=yes,WIDTH=
> 400');return false;\" />";
>
>
> echo '<form action="' . $s_download_action . '" method="post">';
> echo $hidden_download_vars . '' . $u_download;
> echo '</form>';

This looks more like javascript, not java.

And I don't see any problem with your PHP code. But it looks like there
are problems with your html and javascript.

First of all - the submit button isn't in the form. Why not? Or is
there more you haven't shown us?

Next, I don't see where you're passing the value to the popup window in
your javascript.

Try a javascript newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация