Forum Moderators: coopster
In order to parse a php file by clicking a button you have to use some form of Ajax. Rasmus has a great little introduction to the topic in his 30 Second Ajax Tutorial [news.php.net]. You might also want to take a look at the HttpRequest Object [w3schools.com] as it directly relates.
>> all I see is the php code in the field
You are seeing this because the php code isn't being parsed by the server. You have to remember that it is a server-side technology and cannot be interpreted by the browser, therefore it displays it as plain text. In order for php code to be executed, the server must process it, and then send the results back to the browser.
If you need further help on this issue, don't be afraid to ask! :)
Good luck!
look for:
<? echo $service;?>
below.
If this is no help at all I hope at least it gets the wheels turning again in a direction that will help you.
<form method="POST" name="testform" action="goto_some_other_URL.php">
<table align="center">
<tr valign="baseline">
<td nowrap align="right"></td>
<td><input type="hidden" name="clients" value=" 1 " size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td><input type="hidden" value="<? echo $service;?>" size="32"></td>
</tr>
</table>
<input type="hidden" name=submit" value="testform">
</form>
<script type="text/javascript" language="JavaScript"><!--
document.testform.submit();
//--></script>