You are here: Re: url reload « PHP « IT news, forums, messages
Re: url reload

Posted by "Nadim Attari" on 07/08/05 09:57

First of all you should go to:
http://www.google-is-my-best-friend.com <jk>

Then
http://www.google.com.au/search?hl=en&q=%22call+same+page%22+%2B+php

Found in the comments:
http://www.zend.com/zend/spotlight/code-gallery-wade7.php?article=code-gallery-wade7&kind=sl&id=3324&open=1&anc=0&view=1

-----------------
Ok. Here it goes:
http://www.php.net/manual/en/reserved.variables.php

function myFunction($anchor = '')
{
$link = "$anchor";
return $link;
}

// the page calling the function
$aLink = myFunction($_SERVER['PHP_SELF'] . '?var=' . $data);
echo $aLink;

Best Regards,
Nadim Attari
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////


"timothy johnson" <mr2bigjohnson@gmail.com> a ιcrit dans le message
This should be pretty simple but I cant find any info on it at the
site. I am writing a function that will create a anchor, but I want it
to call the same page it is on. Is there a way to get the current php
page I am on so that when I output my anchor for that correct page.

so if I call it from index.php the link will say:
index.php?var=data

but if I can the same function from say photos.php then the link would be:
photos.php?var=data......

thanks

 

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

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