Jump to content

opening a new window from form?


wwfc_barmy_army

Recommended Posts

Hi,

I've got this code to vote for a site and that loads ratesite.php:

[code=php:0] <td colspan="2"><form action="ratesite.php?id=<? print "$qry[id]" ?>" method="post" name="rating" id="rating">
Rate this site:<br>
<select name="rating">
<option value="5" selected>5</option>
<option value="4">4</option>
<option value="3">3</option>
<option value="2">2</option>
<option value="1">1</option>
</select>
<input name="<? echo $_GET[id] ?>" type="hidden" id="<? echo $_GET[id] ?>" value="<? echo $_GET[id] ?>">
<input name="cmd" type="hidden" id="cmd" value="do _rating">
<input type="submit" name="Submit" value="Go!">
</form></td>[/code]

Although i am wondering if there is a way that i can make it so it opens a new windows and a windows that is roughly 200px by 200px in size, just so it's a little window. I dunno how to do this with it being submitted as a form. Any ideas/advice?

Thanks.

Peter.
Link to comment
Share on other sites

[quote author=printf link=topic=110472.msg446612#msg446612 date=1159965797]
I think your in the wrong forum for this question [url=http://www.phpfreaks.com/forums/index.php/board,6.0.html]JavaScript Forum[/url], Anyway in the <form> tag!

[code]onSubmit="window.open(your code here); return false;"[/code]


me!
[/quote]

Thanks where about does this go?

Didn't know which forum to put it in :P

Peter.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.