Call php function using html href -


i searching hours today , can not find solution. here phpfuntion inside of html href, uses explode php-build-function split email , chars after @.

<a href='<?php echo afterchar('@',$nazwa_uz_l); ?>'>log in <?php afterchar('@',$nazwa_uz_l); ?></a> 

while click link goes localhost/gmail.com instead of gmail.com. should do?

try this

<a href='http://<?php echo afterchar('@',$nazwa_uz_l); ?>'>log in <?php afterchar('@',$nazwa_uz_l); ?></a> 

the url relative if there's no protocol (http://) leading url.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -