Jump to content
Fórum Script Brasil
  • 0

Como chamar uma função numa url


omor

Question

Olá, com eu faço para chamar uma funcao em uma url?

mais ou menos isso que eu quero:

 

<?php

    include_once('classes/Url.php');

   echo "<script type='text/javascript'>"location.href='".echo URL::getBase()&irpara=3."'"</script>";

 

?>

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
24 minutos atrás, Stoma disse:

Obrigado Gender, mas eu preciso de transformar esse link aqui 

//echo "<script type='text/javascript'>location.href='../index.php?link=3'</script>";

onde link=3 corresponde a pagina carrinho.php

por esse concatenado

echo "<script type='text/javascript'>location.href = '" . URL::getBase() . "&irpara=3';</script>";

desse jeito não está dando certo


echo "<script type='text/javascript'>location.href = '" . URL::getBase() . "&irpara=3';</script>";

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      651.8k
×
×
  • Create New...