You are here: How Can I 'run' a php file without showing it? « PHP Language « IT news, forums, messages
How Can I 'run' a php file without showing it?

Posted by Ing. David Mιndez on 05/27/05 16:50

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;
}
// -->
</script>

....

<input type="button" value="agregar" onclick="Agregar(2011310)"
class=button>
<input type="button" value="agregar" onclick="Agregar(2011410)"
class=button>
<input type="button" value="agregar" onclick="Agregar(2012010)"
class=button>
<input type="button" value="agregar" onclick="Agregar(2012110)"
class=button>
<input type="button" value="agregar" onclick="Agregar(2015510)"
class=button>
<input type="button" value="agregar" onclick="Agregar(2015530)"
class=button>
<input type="button" value="agregar" onclick="Agregar(2015610)"
class=button>


Thank you.

David.

 

Navigation:

[Reply to this 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация