PDA

View Full Version : Inserire i css in nel php helpme


D4rkAng3l
21-05-2004, 12:47
Ho la necessità di inserire dei css dentro a del semplice codice php
per settare delle caratteristiche grafiche di alcuni form...come posso fare?

Il codice php + il seguente:

<h3>Prenota il tuo ingresso in discoteca</h3>
<?php
echo "<form action=\"prenotarsi_in.php\" method=\"post\">";
echo "nome<br>";
echo "<input type=\"text\" name=\"nome\" size=\"40\"><p>";
echo "cognome<br>";
echo "<input type=\"text\" name=\"cognome\" size=\"40\"><p>";
echo "email<br>";
echo "<input type=\"text\" name=\"email\" size=\"40\"><p>";
echo "<p>vorrei essere inserito nella lista per la serata del<br>";
echo "<select name=\"serata\" size=\"1\">";
echo "<option> - scegli - </option>";
echo "<option value=\"martedì\"> martedì </option>";
echo "<option value=\"venerdì\"> venerdì </option>";
echo "</select>";
$ora=(date("Gi"));
$giorno=(date("w"));
echo "<input type=\"hidden\" name=\"ora\" value=\"$ora\">";
echo "<input type=\"hidden\" name=\"giorno\" value=\"$giorno\">";
echo "<p><input type=\"submit\" value=\"prenotati\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
echo "<input type=\"reset\" value=\"annulla\">"
?>

e questo è il css:

style="border: 1px solid black; color: black; background:#8C8B8B;"

come posso fare?

Grazie

texerasmo
21-05-2004, 15:48
nei tag basta mettere l'attributo class=""
e dopo il tag head

<link rel="stylesheet" href="./css/stili.css" type="text/css">

cionci
21-05-2004, 18:38
Modifica il codice HTML aggiungendoci il codice CSS... Che problemi ci sono ?