by the way, for those that need a contact form these are my views: ----------------------------------------------------------------------------------------------------------------------------------- views/contacts/index.ctp ----------------------------------------------------------------------------------------------------------------------------------- <h1>Contatti:</h1>
<?php echo $form->create('Contact', array('url'=>'/contacts'));?> <?php echo $form->input('nome', array('error' => array( 'required' => 'specifica il tuo nome') ) ); echo $form->input('cognome', array('error' => array( 'required' => 'specifica il tuo cognome') ) ); echo $form->input('e-mail', array('error' => array( 'required' => 'specifica la tua e-mail', 'validEmail' => 'inserisci un e-mail valida' ) ) ); echo $form->input('oggetto', array('error' => array( 'required' => 'specifica l \'oggetto') ) ); echo $form->input('messaggio', array('error' => array('required' => 'inserisci il messaggio'), 'type'=>'textarea', 'cols'=>30)); ?> <div class="submit"><input type="submit" value="invia" /></div> </form> ----------------------------------------------------------------------------------------------------------------------------------- views/layouts/email/text/email.ctp ----------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------- EMAIL FROM YOUR WEBSITE NAME HERE ------------------------------------------------------------------- FROM : <?=$cognome.' '.$nome?> E-MAIL : <?=$email?> SUBJECT: <?=$oggetto?> ------------------------------------------------------------------- MESSAGE: ------------------------------------------------------------------- <?=$messaggio?> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---