$ _SERVER ['PHP_SELF'] + href

0

I have the following code that contains php_selft. When the checkbox is checked, it immediately updates an information and the page, but I need you to direct me to a particular part of the same page as well how does the

work
<a href="#vista"></a>
 <A name="vista"></a>



 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="prueba">

        <input type="checkbox" name="identificacion" onclick="document.forms.prueba.submit()" value="<?php echo $data['cedula']?>">

Thank you very much for the help

    
asked by Carlos Pulgarin 25.08.2018 в 02:17
source

1 answer

0

Following what you need and according to what you need, then try this:

  //cambia el action por el id a donde lo quieres direccionar
 <form method="post" action="#vista" name="prueba">

    <input type="checkbox" name="identificacion" onclick="document.forms.prueba.submit()" value="<?php echo $data['cedula']?>">

/////////////////////////////

<a href="#vista">Aqui iral el check cuando sea presionado</a>

I hope you serve bro, you tell me

    
answered by 25.08.2018 / 02:32
source