passing information accross pages

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2003
Posts: 106
Reputation: spikes is an unknown quantity at this point 
Solved Threads: 1
spikes's Avatar
spikes spikes is offline Offline
Junior Poster

passing information accross pages

 
0
  #1
Sep 30th, 2003
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 3384 | Replies: 0
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC