Ciao,
anzitutto grazie per avermi risposto.
In altre parole questo significa che la pagina web contenente il mio form deve avere estensione .php?
Beh cmq ancora nn ci son riuscito anche rinominando la pagina da iscrizione.html a iscrizione.php e provando sia l'include di cui mi hai parlato sia inserendo tutto il codice del form generato da quel programma.
Cercherò di essere il più chiaro possibile - data la mia totale inesperienza - e di procedere per esempi.
Anzitutto il form generator è PHP FormMail Generator reperibile all'url phpfmg.sourceforge.net/home.php
Ora poniamo che io abbia 3 file:
1) una semplice pagina web paginaweb.html con un titolo, uno sfondo e una tabella ad una colonna e una riga.
2) un file form.php generato dal suddetto form generator con semplicemente l'inserimento dell'email del mittente e i classici bottoni di invio e annullamento.
3) il file lib.php che è incluso nel file form.php, ovvero che form.php richiama attraverso quella sintassi di cui mi parlavi nel post precedente e che qui nn elencherò.
Come faccio ad inserire nella tabella del file paginaweb.html (che suppongo dovrò rinominare paginaweb.php data la tua risposta precedente) il suddetto form?
Scrivo anche i codici generati.
Mi scuso con i puristi ma sono pagine generate da programmi quindi immagino che vi siano delle informazioni ritondanti.
Allego anche una screenshot dell'errore che mi viene sempre
Grazie
PS: tra l'altro il file form.php se caricato sul server sembra funzionare in locale dà errori strani...mah!
************************************************** *************
********* paginaweb.html ****************
************************************************** *************
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="it">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>paginaweb</title>
<meta content="Matteo" name="author">
</head>
<body
style="direction: ltr; background-image: url(../esempio/sfondo.JPG);">
<h1 style="text-align: center;">pagina web di esempio</h1>
<table style="text-align: left; width: 100%;" border="0"
cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>
__________________________________________________ _______________________
************************************************** ***************
************* form.php *********************
************************************************** ***************
<?php include_once( "20060624-8685.lib.php" ); ?>
<html>
<head>
<title>PHP FormMail Generator - A tool to create ready-to-use web forms in a flash | Demo Template</title>
<!--
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1">
-->
<meta name="keywords" content="PHP FormMail Generator, phpFormMailGen, Customize Forms, phpFormMailGenerator,formmail.php, formmail.pl, formMail Generator, PHP, Generator, Backend Tool, phpFormGen, phpFormGenerator, anti-spam, web hosting">
<meta name="description" content="PHP formMail Generator - A tool to ceate ready-to-use web forms in a flash">
<style type='text/css'>
.form_title{
color : #000000;
font-size: 13px;
font-family: verdana, Geneva, Arial, Helvetica, sans-serif;
font-weight : bold;
}
.form_field {
font-size : 13px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #474747;
font-weight : bold;
text-align:left;
}
.form_text{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
}
.text_box{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
width:200px;
}
.text_area{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
width:200px;
height:60px;
}
.text_select{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
}
.form_error{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #ff0000;
font-weight : bold;
}
.copyright{
font-size : 11px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #000000;
}
</style>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<meta http-equiv="content-type" content="text/html; charset=">
<table cellspacing='16' cellpadding='0' border='0' align='center' ><tr><td>
<font class='form_title'>iscrizione</font>
</td></tr></table>
<?php
if( !$isHideForm ):
global $sErr ;
if( $sErr ) print "
<a name='error'></a><center><font class='form_error' >$sErr</font></center>
";
$starColor = $sErr ? "#ff0000" : "#000000";
$style=" class='form_text' ";
?>
<form name="frmFormMail" action="<?php print PHP_SELF ?>" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<input type='hidden' name='esh_formmail_recipient' value="escortvirtuale@email.it">
<input type='hidden' name='esh_formmail_subject' value="">
<input type='hidden' name='esh_formmail_cc' value="">
<input type='hidden' name='esh_formmail_bcc' value="">
<input type='hidden' name='esh_formmail_return_subject' value="xxx">
<input type='hidden' name='esh_formmail_return_msg' value="xxxxxx">
<input type='hidden' name='esh_formmail_mail_and_file' value="">
<input type='hidden' name='esh_formmail_charset' value="">
<table cellspacing='16' cellpadding='0' border='0' >
<tr>
<td class="form_field" valign='top' align='right'>email </td><td width='10' aligh='right' valign='top'></td>
<td class="form_text">
<input type="sender's email" name="email" value="<?php print HtmlSpecialChars( $HTTP_POST_VARS[ "email" ] ); ?>" class='text_box'>
</td>
</tr>
<tr>
<td class="form_field" valign='top' align='right'>commento </td><td width='10' aligh='right' valign='top'></td>
<td class="form_text">
<textarea name="commento" rows=4 cols=25 ><?php print HtmlSpecialChars( $HTTP_POST_VARS[ "commento" ] ); ?></textarea>
</td>
</tr>
<tr><td colspan=3 align='center'><input type='submit' value='Submit'> <input type='button' value='Cancel' onclick="location.href='/';"></td></tr>
</table>
</form>
<?php
if( $sErr ) print "<script language='javascript' type='text/javascript'>location.href='#error';</script>";;;
else: //!$isHideForm
print( "
<hr><center>Your form has been sent. Thank you.
<input type='button' value='Home' onclick=\"location.href='/';\"></center>
" );
endif; //!$isHideForm
?>
<div align="right" class='copyright'>
Generated by :
phpFormMail Generator V1.0 - A tool to create ready-to-use web forms in a flash!
</div>
</body>
</html>
__________________________________________________ ___________________________
__________________________________________________ ____________________________