Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    Aug 2006
    Messaggi
    833

    form action? inserire piu' funzioni

    Ciao, volevo sapere come si fa a mettere piu' tasti di funzione.
    Devo mettere (es.) due tasti, update e delete, ho provato cosi'

    print '<form action="db2_update3.php?customerSRVCLI=' . $customerSRVCLI .'&customerSRVNUM=' . $customerSRVNUM . '" method="POST">';

    print '<form action1="db2_delete5.php?customerSRVCLI=' . $customerSRVCLI .'&customerSRVNUM=' . $customerSRVNUM . '" method="POST">';


    print '<input type="submit" name="action" value="Update" />';

    print '<input type="submit" name="action1" value="Delete" />';

    Pero' il secondo tasto (action1) che dovrebbe chiamare la pagina db2_delete5.php
    e cancellare il record, assume il valore del primo form e chiama l'altra pagina!

    Dove sbaglio, perche fa cosi?

    Grazie

  2. #2
    print '<form action="db2_update3.php?customerSRVCLI=' . $customerSRVCLI .'&customerSRVNUM=' . $customerSRVNUM . '" method="POST">';
    print '<input type="submit" name="action" value="Update" /></form>'

    print '<form action1="db2_delete5.php?customerSRVCLI=' . $customerSRVCLI .'&customerSRVNUM=' . $customerSRVNUM . '" method="POST">';
    print '<input type="submit" name="action1" value="Delete" /></form>';

    ciao
    Tremal-Naik
    ******************************
    passa a LINUX
    **********
    la religione e' il freno che impedisce al povero di ammazzare il ricco

  3. #3
    Utente di HTML.it
    Registrato dal
    Aug 2006
    Messaggi
    833
    Ho ancora lo stesso problema, o meglio adesso il link sul secondo bottone (delete) lo fa sulla stessa pagina dove sono i bottoni.

  4. #4
    print '<form action="db2_update3.php?customerSRVCLI=' . $customerSRVCLI .'&customerSRVNUM=' . $customerSRVNUM . '" method="POST">';
    print '<input type="submit" name="action" value="Update" /></form>'

    print '<form action="db2_delete5.php?customerSRVCLI=' . $customerSRVCLI .'&customerSRVNUM=' . $customerSRVNUM . '" method="POST">';
    print '<input type="submit" name="action" value="Delete" /></form>';

    prova così
    ciao
    Tremal-Naik
    ******************************
    passa a LINUX
    **********
    la religione e' il freno che impedisce al povero di ammazzare il ricco

  5. #5
    Utente di HTML.it
    Registrato dal
    Aug 2006
    Messaggi
    833
    Funziona, grazie.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.