I'm using this crappy API, and it gives you an apptoken as part of the URL to use in the action bit of a form. The method is post. What I want to do is try and hide the apptoken from being in the source code (it's not really necessary but now I want to know if what I'm trying to do is even possible.) So my idea was to set the form action to an HTML form to be a function.php and have function.php be the one doing the posting of the form's action to the http://domain.com/apptokenxxxxxxxxx
function.php would not be publicly readable therefore hiding the apptoken sort of like a content management systems config file.
Is this even possible? Or am I chasing a rabbit down the wrong hole... I just need to be pointed in the right direction.
EDIT: HTML Form:
<h2>Client Tracker: Sample Clients</h2><form name=qdbform method=POST onsubmit='return validateForm(this)' encType='multipart/form-data' action=https://sample.quickbase.com/db/bdrsrxjnrr?act=API_AddRecord&apptoken=cwfcy7gdzsjeo6556ebi2bn4u4kr>
<input type=hidden name=fform value=1>
<table>
<tr><td class=m>Company</td>
<td class=m><input type=text size=40 name=_fid_5 ></td></tr>
<tr><td class=m>Contact</td>
<td class=m><input type=text size=40 name=_fid_10 ></td></tr>
<tr><td class=m>Comments</td>
<td class=m><textarea name=_fid_12 rows=6 cols=40></textarea></td></tr>
</table><input type=hidden name=rdr value='http://bbc.co.uk'>
<input type=submit value=Save>
</form>
<script lang=javascript>
function validateForm(theForm)
{
}
</script>
So - the bit here: action=https://sample.quickbase.com/db/bdrsrxjnrr?act=API_AddRecord&apptoken=cwfcy7gdzsjeo6556ebi2bn4u4kr>
I want to be hidden from someone just seeing by doing a view source. The way that I thought of doing it is having the webserver handle it server side so that the web user never gets to see where the data is actually being sent to, other than the function.php or whatever I call it.