|
Posted by calvinwohobbes on 11/01/40 11:41
Heres the thing, I just started on this project for the week, never
have done any php, html, javascript ever and i'm just thrown into it.
the whole program is alot more complicated....
thanks for the quick reply though
first off, i'm working with existing code, so i'm doing maintence, I'm
adding features.
so far theres already a working find that sends the information. since
im so new at this, theres a file called gameframe.php where it connects
to a topmenu.php and gamelist.php.
heres some code for the topmenu.php find
<form name="searchForm" method="GET" action="gamesList.php"
target="mainFrame" onSubmit="submitSearch(<?php echo
$_SESSION['linkIndex']; ?>);">
this is submit search
function submitSearch(index)
{
document.links[index+1].search='';
document.links[index+2].search='';
document.links[index+3].search='';
document.links[index+4].search='';
document.forms['searchForm'].elements['Hardware'].value=getHardware();
}
heres a block of code from gamelist.php
<script>
function updateLinks(data,hardware,index)
{
parent.topFrame.document.links[index+1].search=data;
parent.topFrame.document.links[index+2].search=data;
parent.topFrame.document.links[index+3].search=data;
parent.topFrame.document.links[index+4].search=data;
var i=0;
while (i <
parent.topFrame.document.forms['platformForm'].elements['Hardware'].length)
{
if (hardware ==
parent.topFrame.document.forms['platformForm'].elements['Hardware'].options[i].value)
parent.topFrame.document.forms['platformForm'].elements['Hardware'].options[i].selected=true;
i++;
}
parent.topFrame.document.forms['searchForm'].elements['textfield'].value=''}
</script>
I hope i have pasted enough code... the find button works
since i'm such a newbie.. my "filter for checkboxes" code looks like
this
<form action="topMenu.php" method="post" >
....
<?php
$year_answer = $_POST[year_answer];
$genre_answer = $_POST[genre_answer];
$esrb_answer = $_POST[esrb_answer];
.....
it works for me in topmenu.php....
but i want that exact same information sent to gamelist.php
So, what help can i get?
and thanks again for the prompt reply.
thanks,
calvin
Navigation:
[Reply to this message]
|