spikes 0 Junior Poster

Hi All,
i am using a combination of php and javascript on a current project, but i have got stuck.

bellow is a sudo code page to try and explain what i am doing

<js>
function = newwindow()
</js>

<form>

<?php echo field1>
<?php echo field2>
<inputtype=checkbox>

onclick = submit data from selected fields and open page 2 in a target window

</form>

hope that makes some sence, without the html.

so what i have is a form populated by php, from a database. then next to each row on the form i have a checkbox, that is linked to the id field.
below that i have a some javascript that displays a submit button, and opens a target window.

the problem i have is that i can eather open the target window, using a newwindow() funtion deffined above or i can send the veriables from the form. but not both.

can anyone give me any clues as to how i could write the submit button to send the data, http://www.somewhere/mypage.php?data1&data2 so i can pick it up useing php, or js. and get the next page to open in the small target window.

many thanks

spikes

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.