TEMA:

Link form to a web url 1 año 8 meses antes #263430

  • Autor del tema
  • DAVIDPL
  • Fuera de línea
  • Navegador Senior
  • Navegador Senior
  • Registered
  • Mensajes: 137
  • Gracias recibidas: 0
Hello there

I want to link the redirect to a web after the form has been submitted, according to the data in two fields

A / title .. campo: 1_Tprofesor
B / sport campo: 1_Deporte

I have the code making the link with the field A / TITLE

I want to link it to the two options.

code:

$this->execPieceByName('ff_InitLib');
$value = ff_getSubmit('1_Tprofesor');
switch( $value )
{
case '1': header('Location:https://www.judomurcia.es/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=106'); exit; break;
case '2': header('Location:https://www.judomurcia.es/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=105'); exit; break;
case '3': header('Location:https://www.judomurcia.es/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=107'); exit; break;
case '4': header('Location:https://www.judomurcia.es/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=108'); exit; break;
case '5': header('Location:https://www.judomurcia.es/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=109'); exit; break;
}

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Link form to a web url 1 año 8 meses antes #263432

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Navegador Platino
  • Navegador Platino
  • Registered
  • Mensajes: 3262
  • Gracias recibidas: 163
Hi,

could you please see this link where is described how to do it with element select List.

Hope this helps.
If you need more help, let me know!

Regards,
Mirko

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
Moderadores: ForumSupport
Tiempo de carga de la página: 0.048 segundos

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!