Jump to content

s0nyx

VIP
  • Posts

    235
  • Joined

  • Last visited

  • Days Won

    16

Posts posted by s0nyx

  1. Pai trebuie sa ai in <form> atributul method='POST', iar la inputuri sa ai aitributul name="" (pui ce nume vrei). 

    codul trebuie sa arate ceva de genul 

    <form method='POST'>
      <input type='text' name='_Test1'>
      <button type='submit'></button>
    </form>
    
    <!-- In PHP il folosesti cu $_POST['name'] -->
    
    <?php 
    
    	echo $_POST['_Test1'];
    	//doar un exemplu
    ?>

    Eu vad ca vorbesti despre sweetalert, ei bine e acelasi lucru, dar iti recomand sa arunci o privire AICI.

×
×
  • Create New...