/    Sign up×
Community /Pin to ProfileBookmark

Opening a method=post in new window`

I have a game that loads through my site which they have to select a username to play. What I want, is so that when they hit the play button, it will open up the java game in a new window, with the window only the size of the game. I tried adding the target=”_blank” code a few places but it just messes things up. Here is what the code looks like:

[CODE]<form method=post action=acro.php>
Choose a Screen Name:
<input type=text name=name size=15>
<input type=submit value=”Play Acrophobia!”>
</form>[/CODE]

the acro.php file is the one I want to open in a new window the size of the game. Any help is greatly appreciated.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@chazzyJan 07.2006 — that's a javascript thing typically.
Copy linkTweet thisAlerts:
@NogDogJan 07.2006 — Have you tried:
<i>
</i>&lt;form method=post action=acro.php target="_blank"&gt;
×

Success!

Help @ga2000gt spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...