Jump to content


Photo

opening a new window from form?


  • Please log in to reply
2 replies to this topic

#1 wwfc_barmy_army

wwfc_barmy_army
  • Members
  • PipPipPip
  • Advanced Member
  • 320 posts

Posted 04 October 2006 - 12:33 PM

Hi,

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

<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>

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.

#2 printf

printf
  • Staff Alumni
  • Advanced Member
  • 889 posts

Posted 04 October 2006 - 12:43 PM

I think your in the wrong forum for this question JavaScript Forum, Anyway in the <form> tag!

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


me!

#3 wwfc_barmy_army

wwfc_barmy_army
  • Members
  • PipPipPip
  • Advanced Member
  • 320 posts

Posted 04 October 2006 - 12:59 PM

I think your in the wrong forum for this question JavaScript Forum, Anyway in the <form> tag!

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


me!


Thanks where about does this go?

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

Peter.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users