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 -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -