Thanks for your reply....
hopefully this isn't too long...
The way this app has been built is to have an .inc file (but still php) for all the functions.
so I have search.php and search.inc (and the in theory searchresults.php)
so search.php has
<form name="InputForm" action="<?php echo $ScriptName ?>" method="post">
<input type="hidden" name="Action" value="Search">
as the action attribute
my ideas were:
<?php echo getdata(blah)?> (btw blah = 5 variables)
or the button:-)
but at the moment:
the button Submits with action Search which calls getdata(blah) in search.inc file which returns $s as a line of html mixed with data.
The search.php is supposed to call searchresults.php... but I'm getting lost in the layers...
I need the button to get the original values (for getdata(blah)).. but then I don't know where to return the values... (the echo is something thats worked on otherpages...) ..
maybe search.inc can call searchresults.php with $s or with just the data?? if so.. whats the nicest way?
Thanks
Beth