HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/incastiglionfiorentino/wp-content/themes/amplify/contatti-speciale.php
<?php
/**
 * Template Name: Contatti Speciale
 *
 * Contact Form page template - modificata
 *
 * The "Template Name:" bit above allows this to be selectable
 * from a dropdown menu on the edit page screen.
 */

get_header(); ?>

<div id="main_container">

<!-- IE7 float fix --><!--[if lt IE 7]><span class="iefix">.</span><![endif]-->

	<div class="main">
	
			<div class="entries_full">
			
				<div class="entry_full">
				
				<div class="box_twothirds mt33 pr60">

<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

				<h2 class="mb15"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
				<?php the_content(); ?>
                
<?php endwhile; ?>

				
		<form id="theform" class="form" method="post" action="<?php echo get_template_directory_uri(); ?>/sendmail.php">
		<?php
			$contatti_id=get_the_ID();
			$metakey = 'email';
			  $t = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = %s ORDER BY meta_value ASC", $contatti_id, $metakey) );
			  if ($t) {
				foreach ($t as $s) {
				  ?>
                  <input type="hidden" name="myemail" value="<?php echo $s ?>" />
                  <?php
			
				}
			  }
	  	?>
		
        <input type="hidden" name="lang" value="it" />

	
	
	<p class="name validated">
		<label for="name">Nome</label>
		<span><input type="text" name="name" id="name" /></span>
	</p>
	
	<p class="email validated">
		<label for="email">E-mail</label>
		<span><input type="text" name="email" id="email" /></span>
	</p>

	<p class="text validated">
		<textarea name="message" id="message" rows="50" cols="100"></textarea>
	</p>

	<p class="submit">
		<input type="submit" name="myformsubmit" value="Invia" />
	</p>
	<p id="error">
    </p>
		</form>

				</div>

<!-- Begin Sidebar -->
<?php 
if(get_field('custom_sidebar_value') != NULL) 
	{include get_field('custom_sidebar_value');}
	else {include('sidebar.php');} ?>
<!-- end sidebar -->
							
				<div class="clear"></div>

				</div><!-- end div.entry -->
				
			</div><!-- end div.entries -->

	<div class="clear"></div>
		
	</div><!-- end div#main -->
	
	<div class="clear"></div>
	
</div><!-- end div#main_container-->

 <?php include('footer_contact.php'); ?>