Reply to Re: How Can I 'run' a php file without showing it?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация