ciao gente....vi spiego, ho un tabella che si presenta cosi come nell'immagine qui sotto:
all'interno della colonna "Azione" in ogni cella cliccando sul link "Aggiungi al carrello" posso aggiungere un prodotto al carrello... sopra la tabella come notate ho un campo input e il bottone di submit esegui azione... quello che vorrei fare io è: inserisco il codice del prodotto dentro l'input di testo, clicco su esegui azione, e automaticamente viene "cliccato" il link "aggiungi carrello" del prodotto con il codice che sta dentro l'input di testo... spero di essere stato chiaro
codice:<form method='post'> <input type='text' autocomplete='off' id='barcodes' name='barcode' placeholder='Inserisci codice prodotto' autofocus> <input type='submit' id='submit' name='sendbarcode' placeholder='sendbarcode' style='' value='Esegui Azione'> </form>è una cosa fattibile? come potrei fare?=)codice HTML:<table> <tr> <th>Codice prodotto</th> <th>Nome prodotto</th> <th>Prezzo</th> <th>Azione</th> <th>Quantità rimaste</th> <th>Quantità vendute</th> </tr> <tr> <td>echo $row['id_product'] </td> <td>echo $row['name'] </td> <td>echo $row['price'] €</td> <td><a href="index.php?page=products&action=add&id=echo $row['id_product'] ">Aggiungi al carrello</a></td> <td><center>echo $row['Quantita_rimaste'] </center></td> <td><center>echo $row['Quantita_vendute'] </center></td> </tr> </table><br>

ciao gente....vi spiego, ho un tabella che si presenta cosi come nell'immagine qui sotto:

Rispondi quotando