| | |
passing information accross pages
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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
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
![]() |
Similar Threads
- response.redirect help?? (ASP)
- Exporting ASP pages to Excel (ASP)
- Passing Information help (ASP)
- Session variable keeping login information (ASP.NET)
- how to paginate and get the information (PHP)
- A Funky ASP/SQL "opportunity" (ASP)
- Passing Information Between pages (PHP)
Other Threads in the Java Forum
- Previous Thread: java 3d viewable to everyone
- Next Thread: closing a window
Views: 3384 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for Java
3d @param affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth byte c# chat class classes click client code color compare component corrupted database detection draw eclipse error event exception file fractal game givemetehcodez graphics gui guitesting helpwithhomework html ide image input integer j2me java java.xls javaprojects jmf jni jpanel julia keytool keyword linux list loop map method methods mobile netbeans newbie number object oracle os pong print problem producer program programming project read recursion reflection rim scanner screen server set size sms socket sort sql string swing terminal test threads time transfer tree web windows





