Come aggiungere un Web Form Semplice

December 22

Anche se il modulo d'ordine di cui avete bisogno per il vostro sito web è semplice, il processo che si deve seguire per pubblicare lo richiede almeno una conoscenza di base e una comprensione generale di come HTML opere di codifica. Quando si aggiunge un modulo d'ordine semplice, è necessario aggiungere tre elementi alla pagina. In primo luogo, è necessario aggiungere uno spazio per le informazioni di contatto, secondo hai bisogno di una sezione in cui il cliente fa la sua fine e l'ultimo è necessario un pulsante di invio.

istruzione

1 Accedere al server Web.

2 Aprire la pagina HTML in cui si desidera visualizzare il modulo d'ordine:

3 Inserire il seguente codice dopo il tag <body>:

<Tr>

<Td width = "340" align = "right"> <font color = "# FF0000"> Nome </ font> </ td>

<Td width = "10"> </ td>

<Td width = "200"> <input type = "text" name = "Nome" size = "30" tabindex = "1"> </ td>

</ Tr>

<Tr>

<Td width = "340" align = "right"> <font color = "# FF0000"> E-mail </ font>

(La conferma verrà inviata qui): </ td>

<Td width = "10"> </ td>

<Td width = "200"> <input type = "text" name = "Email" size = tabindex "30" = "1"> </ td>

</ Tr>

<Tr>

<Td width = "340" align = "right"> altre info di contatto: </ td>

<Td width = "10"> </ td>

<Td width = "200"> <input type = "text" name = "OtherInfo" size = tabindex "30" = "1"> </ td>

</ Tr>

<Tr>

<Td width = "340" align = "right"> </ td>

<Td width = "10"> </ td>

<Td width = "200"> </ td>

</ Tr>

</ Table>

4 Inserire il seguente codice per ordinare i campi di input nel documento:

<Tr>

<Td width = "250" height = "31"> <b> Descrizione </ b> </ td>

<Td align = "center" width = "100" height = "31"> <b> Quantità </ b> </ td>

<Td align = "right" height = "31" width = "60"> <b> Prezzo </ b> </ td>

<Td align = "right" height = "31" width = "140"> <b> Totale </ b> </ td>

</ Tr>

<Tr>

<Td width = "250"> di classe "A" Widget </ td>

<Td align = larghezza "centro" = "100">

<Input type = "text" name = "qtyA" size = "5" tabindex = "5"> </ td>

<Td align = larghezza "destra" = "60"> 1.25 </ td>

<Td align = larghezza "destra" = "140">

<Input type = "text" name = "totala" size = "12" tabindex = "99"> </ td>

</ Tr>

<Tr>

<Td width = "250"> di classe "B" Widget </ td>

<Td align = larghezza "centro" = "100">

<Input type = "text" name = "qtyB" size = "5" tabindex = "5"> </ td>

<Td align = larghezza "destra" = "60"> 2.35 </ td>

<Td align = larghezza "destra" = "140">

<Input type = "text" name = "totalB" size = "12" tabindex = "99"> </ td>

</ Tr>

<Tr>

<Td width = "250"> di classe Widget "C" </ td>

<Td align = larghezza "centro" = "100">

<Input type = "text" name = "qtyC" size = "5" tabindex = "5"> </ td>

<Td align = larghezza "destra" = "60"> 3.45 </ td>

<Td align = larghezza "destra" = "140">

<Input type = "text" name = "totalC" size = "12" tabindex = "99"> </ td>

</ Tr>

<Tr>

<Td width = "250"> </ td>

<Td align = larghezza "centro" = "100"> </ td>

<Td align = larghezza "destra" = "60"> </ td>

<Td align = larghezza "destra" = "140"> </ td>

</ Tr>

<Tr>

<Td width = "250">

<P align = "right"> <b> TOTALI: </ b> </ td>

<Td align = larghezza "centro" = "100"> </ td>

<Td align = larghezza "destra" = "60"> </ td>

<Td align = larghezza "destra" = "140">

<Input type = "text" name = "GrandTotal" size = tabindex "15" = "99"> </ td>

</ Tr>

<Tr>

<Td width = "250"> </ td>

<Td align = larghezza "centro" = "100"> </ td>

<Td align = larghezza "destra" = "60"> </ td>

<Td align = larghezza "destra" = "140"> </ td>

</ Tr>

</ Table>

5 Sostituire le istanze di "A", "B" e "C" ed i prezzi ($ 1,25, $ 2,35 e $ 3,45) con i nomi reali dei prodotti e dei prezzi.

6 Inserire il pulsante "Invia" entro il prossimo inserimento di questo codice:

<P> </ p>

<Table border = "0" cellpadding = "0" width = "550" id = "table3">

<Tr>

<Td width = "563">

<P align = "center">

<Input type = "submit" value = "Invia" name = "subButton" tabindex = "50">

<Input type = "reset" value = "Reset" name = tabindex "resetButton" = "50"> </ td>

</ Tr>

</ Table>

</ Form>

7 Pubblicare la pagina.