# Help with php/java popup form? (button won't submit)

**URL:** <https://forum.kirupa.com/t/help-with-php-java-popup-form-button-wont-submit/250367>\
**Category:** Uncategorized\
**Created:** [January 29, 2008, 12:25am UTC](https://forum.kirupa.com/t/help-with-php-java-popup-form-button-wont-submit/250367 "2008-01-29T00:25:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![a2xa](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@a2xa](https://forum.kirupa.com/u/a2xa)\
**Post date:** [January 29, 2008, 12:25am UTC](https://forum.kirupa.com/t/help-with-php-java-popup-form-button-wont-submit/250367/1 "2008-01-29T00:25:22Z")

</div>

I’m making it where the user types in their ‘hub’ and it brings them to it.

the form for the page before (to send the variable) is:

```auto
<form action="/hubs/main.php" name="join" method="post">
<input type="text" name="hubid">
<input type="submit">
</form>

```

the next page where the data is sent to is:

```auto
<html>
<head>

<SCRIPT LANGUAGE="JavaScript">

<!-- Idea by: Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=275,height=300');");
}
// End -->
</head>
</script>
<body>
<form>
<input type=button value="Open the Hub" onClick="javascript:popUp('<?php $hubid = $_POST[hubid]; $file = 'http://wiicharged.com/hubchat/$dir/shout.swf'; echo $file;?>');
</form>
</body>

</html>

```

The main problem is getting the variables to transfer over from the php to the java (and the submit button not working)

Thanks! all help is appreciated! Where it is is at [http://wiicharged.com/index.php?action=hubs;sa=join;](http://wiicharged.com/index.php?action=hubs;sa=join;)

I appreciate it! :hugegrin:
