Posted by Randy Webb on 05/28/05 01:13
Ing. David Méndez wrote:
> I have the folllowing problem:
>
> In a html page I show several 'buttons'. This buttons have a
> onclick="Agregar([a number])". The 'Agregar(number)' function calls a php
> file. This php file UPDATES a row in a MYSQL database using the number. Up
> to here is OK.
>
> I don't want to show the: "?m=number" (in the URL, when I call the pHP file)
>
> or best... That the PHP files runs transparentely.
> or at least with a POST method to send the parameters (number)
>
> The code I have is somethig like:
>
> <script language="JavaScript">
> <!--
> function Agregar(matnum) {
> window.location.href="member.php?m=" + matnum;
document.images['someImage'].src="phpFile.php?m=" + matnum;
> }
<img name="someImage" src="phpFile.php" width="1" height="1">
Then, the URL is never seen (to most anyway).
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
[Back to original message]
|