Web Design Forums
Web Design Forums Forums Register Why Register? About WDF FAQ Members Feedback WDF Store
Welcome! Please register or log in: Forgot your password? Why register?
You are here: Web Design Forums » Today at WDF RSS
Today's Featured Posts
Posts selected by moderators as being high in quality
No posts were hand-selected for today, but here are some popular recent discussions.
Hello everyone, i hope my spelling isnt to bad to understand.

Ok lets start, Ive made a basic form in dreamweaver CS3, Then i had a go at codeing a php script that when someone enters the infomation posted on the form it goes into my domain/sever Email account, the info they have entered shows, all correct ect..

now i want them to beable to send me files, Images. but my coding wont work..
what ive done here is added the image tags there, for the php script. and also on my forms in dreamweaver HTML file format i added the File Field and called the tag image1 - then image2 - then image3... but when it comes into my email it does this. Item image1: /tmp/phpPRkkIb
Item image2: /tmp/phpPRkkIb
Item image3: /tmp/phpPRkkIb

ive hiden my email.. so that would change...

HELP ive been trying for hours n hours


<?php

/* Subject and Email Variables */

    
$emailSubject 'contacts';
    
$webMaster 'Hidenemail@Email';
   
/* Gathering Data Variables */

    
$itemnameField $_POST['itemname'] ;
    
$disField $_POST['dis'] ;    
    
$priceField $_POST['price'] ;  
    
$postField $_POST['post'] ; 
    
$locationField $_POST['location'] ; 
    
$emailField $_POST['email'] ; 
    
$phoneField $_POST['phone'] ; 
    
$image1Field $_POST['image1'] ; 
    
$image2Field $_POST['image2'] ; 
    
$image3Field $_POST['image3'] ; 
    
$agreeField $_POST['agree'] ;  
    
    
$body = <<<EOD
<br><hr><br>
Item name: $itemname <br>
Item Dis: $dis <br>
Item Price: $price <br>
Item post price: $post <b>
Item location: $location <b>
Item email: $email <b>
Item number: $phone <b>
Item image1: $image1 <b>
Item image2: $image2 <b>
Item imagr3: $image3 <b>
Item location: $location <b>
Yes i agree: $agree <b>


EOD;

    
$headers "From: $email\r\n";
    
$headers .= "Content-type: text/html\r\n";
    
$success mail $webMaster$emailSubject$body$headers ) ;



/* Results rendered as HTML */

    
$theResults = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thanks </title>
<style type="text/css">
<!--
.style2 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #666666;
}
.style3 {
    color: #990000
}
.style4 {color: #333333}
-->
</style>
</head>

<body>
<div>
  <div align="left" class="style2">
    <h2 class="style3">THANK YOU FOR <span class="style4">CONTACTING US</span></h2>
  </div>
</div>
<p>&nbsp;</p>
<div>
  <div align="left" class="style2">Thank you for your interest! Your email will be answered very soon!</div>
</div>
<br />
<br />
<div>
  <div align="left" class="style2"><a href="home.html" class="style3">Return back &gt;&gt;</a></div>
</div>
<p>&nbsp;</p>
</body>
</html>

EOD;
echo 
"$theResults" ;


?>
Ok - here's my site I just started today: www.mercfire.kh3.us/governist
It's fine in IE8, but in FF it's messed up. What code below do I need to change to allow for universal browser support? Firefox and IE are my main concerns right now, Safari & chrome are pluses.
.wrapper{
  width:95%;
  border:1px solid #404040;
  margin-left: auto;
  margin-right: auto;}
.header{
  width:100%;
  text-align:center;}
.logo{
  width:100%;
  text-align:left;}
.news{
  margin:1%;
  width:35%;
  border:1px solid #000;
  text-align:left;
  padding:5px;
  float:right;}
.menu{
  width:100%;}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"[url="http://www.w3.org/TR/html4/strict.dtd"]http://www.w3.org/TR/html4/strict.dtd[/url]">
<html>
 <head>
  <title>Governist</title>
  <meta name="copyright" content="2009, Governist.  All rights reserved.">
  <meta name="keywords" content="Governist, free, game, business, simulation, online, country, countries, politics" />
 <meta name="description" content="Play Governist, a revoultionary new online game." /> 
 
 
  <link rel="stylesheet" href="css/default.css" type="text/css" media="screen" />
 
 </head>
<body>
<div class="wrapper">
 <div class="header">
    <div class="logo">
    <img src="images/logo.png" />
  <div class="news">
    <? include("includes/text/news.txt"); ?>
    </div>
    </div>
 
  </div>
 <div class="menu">
   <? include("menu.html"); ?>
  </div>
</div>
</body>
</html>

Combatibality and security are my two bad points.
Im using the php mail() function

mail($send_email, $subject, "Forma de Contacto para Sitio de Web\n"
."Nombre Completo: ".$fullname."\n"
."Email: ".$email."\n"
."Teléfono: ".$phone."\n"
."Título: ".$title."\n"
."Empresa: ".$company."\n"
."Dirección: ".$address."\n"
."Ciudad: ".$city."\n"
."Estado o Provincia: ".$state."\n"
."Código Postal: ".$zip."\n"
."País: ".$country."\n"
."Método de contacto preferido: ".$contactmethod."\n"
."Favor de añadirme a su lista de email para recibir su boletín informativo: ".$signup."\n"
."Intereses, Preguntas o Comentarios: ".$message, $headers_clients);

Some of the characters are being replaced in the text feilds with english but should be in spanish when the form is sent
Is there a way to specify what language the mail() function uses?
I've dabbled in HTML in the past and I've played with quite a few content management systems such as wordpress, joomla, e107, and a few more. I want to step up my web design skills and stop depending on CMS for all of my sites. What I'd like to build is a site kind of like this one.

http://www.thefatlute.com

I think a site like this would be great practice, fairly simple design and incorporates a database. Can anyone tell me the best way to start something like this?

Actually if anyone could help me out with creating a basic database and being able to add to it and query it using an html or php page I think I could figure the rest out with trial and error.
Hi,
I've inserted a graphic into my web page with Dreamweaver and I would like to superimpose 3 transparent mp3 audio buttons (evenly from left to right) so visitors can click and hear what they see.
How do I do that?
It's been suggested to create a table and set the table background to the image. I tried that but did not get very far.
Replies for a Dreamweaver beginner would be much appreciated.
regards
GB
Hello,
I would like to display newsfeeds for a specific keyword or subject on a commercial website, but when I checked google or yahoo terms of service for news feeds, they dont allow to display their feeds on commercial websites. Does anyone have good suggestion? By the way, although free is preferred, I can still pay a little for this, if it is a good service.
On my website, my blog is embedded within an iFrame. But as the blog posts increase, I would like the length of the iframe to increase (WITHOUT a scroll bar!). Is there a code for this?

(sorry - not sure if this should have been posted in css or javascript)
Hi,

I have this Bing search site I'm working on that is having problems here:

http://www.searchsites.ms11.net/index2.htm

When you do a search, the Bing search pop up is being blocked by the YouTube video player. This only seems to occur on Windows based PC's. I've tested it in FireFox, internet Explorer and Chrome. The pop up displays under the video player in all three browsers making quite sure it is a Windows issue.


On my iMac the search pop up displays correctly over the video player.

Is there a hack or anything to fix this?

Beyond that, I was originally trying to add a Google Custom search Box to the site...But I wanted to add my own button on the same line and directly right of the search box...If anyone could show me exactly how to do that I would be willing to switch back to a Google Custom Search Box. Thank you;.
Hi, I am new to this stuff. I created an animation on adobe flash, and I am trying to successfully put it on my website (with the program dreamweaver), but when I import the flash, the internet preview just shows a blank white rectangle. I don't know what I am doing wrong. Any ideas?
Thanks.
Ok so i've nearly finished my site and i'm left with 2 small annoying problems. The first one is that it doesn't matter whether or not someone checks the terms and conditions checkbox, the form still submits.

The second is that when someone enters a £ sign in a field, when i recieve the email after its submitted the £ sign has a capital A with an arrow above it in front of the £ sign.



Hopefully 2 easy to fix problems, here is the code for my page. I know its bad in many ways but it works and looks fine when uploaded.



<?php
ini_set
('display_errors'1);

extract($_POST);

if (!
file_exists("../config.php")) 
{
$host $_SERVER[HTTP_HOST ];
$path pathinfo($_SERVER['PHP_SELF']);
$file_path $path['dirname'];

exit;
}
include 
"../config.php";


if (
$sendto_email == "changeme@example.com")
{

exit;


if (!
eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$"$senders_email))
{
$error "1";
$info_error .= $lang_invalidemail "<br>"
}
if (empty (
$security_code)) 
{
$error "1";
$info_error .= $lang_nocode "<br>"
}

if (
$terms != 1) {
if (
$senders_name != '') {
$error "1";
$info_error .= "Please accept the terms and conditions and try again"
}
}

elseif (
$security_code != $randomness
{
$error "1";
$info_error .= $lang_wrongcode "<br>"
}
if (
$showlink != "no")
{
$link "<br><span style=\"font-size: 10px;\">Powered by <a href=\"http://www.bellonline.co.uk/web-services/free/scripts/php-mailer-script/\" title=\"free PHP mailer script\">BELLonline PHP mailer script</a></span>";
}
if (
$error == "1"
{
$info_notice "<span style=\"color: " $error_colour "; font-weight: bold;\">" $lang_error "</span><br>"

if (empty (
$submit)) 
{
$info_error "";
$info_notice $lang_notice;


function 
Random() 
{
$chars "ABCDEFGHJKLMNPQRSTUVWZYZ23456789";
srand((double)microtime()*1000000);
$i 0;
$pass '' ;
while (
$i <= 4
{
$num rand() % 32;
$tmp substr($chars$num1);
$pass $pass $tmp;
$i++; 

return 
$pass
}
$random_code Random();
$mail_message stripslashes($mail_message);

print 
"<form name=\"BELLonline_email\" method=\"post\" style=\"margin: 0;\" action=\"\">


"
;

echo 
"<strong><font color=\"FF0000\">".$info_error."</font></strong>";
?>
<!--Elitetradesmen form -->

<p>To quote for this job please fill in the details below: </p>
<p><BR> 
<LABEL for="job_number">Job Number: </LABEL> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp; 
<label for="your_business_name">Your Business Name: <br />
<input name="job_number" type="text" id="job_number" value="<?=$job_number;?>" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" id="your_business_name" name="your_business_name" value="<?=$your_business_name;?>" />
<br />
</label>
<BR> 
<label for="your_start_date">Your Start Date: </label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yo ur Completion Date:<BR>
<INPUT type="text" id="your_start_date" name="your_start_date" value="<?=$your_start_date;?>"> 
<label for="your_completion_date">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;
<input type="text" id="your_completion_date" name="your_completion_date" value="<?=$your_completion_date;?>"/>
<br /><br />

<label for="email">Email:</label>
<br />
<input type="text" id="senders_email" name="senders_email" value="<?=$senders_email;?>"/>
<br />
<label for="additional_information">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
</label>
Your quote with any additional information:
<br />
<textarea name="additional_information" cols="35" rows="5" id="details" name="additional_information"><?=$additional_information;?></textarea>
<br />
<BR>
<label>
<input name="terms" type="checkbox" id="terms" value="1" /> Please check the box to confirm you have read and agree to our <a href="../policies.html">Terms and conditions
</a></label>
<a href="../policies.html"><br/>
</a><br/> 


<!-- end elite tradesmen form -->


<?
// DO NOT EDIT THE BELOW
print "
Please enter the text in the box. (case sensitive): <input name=\"security_code\" type=\"text\" id=\"security_code\" size=\"5\"> 
&nbsp;&nbsp;&nbsp;&nbsp;<b>$random_code</b><input name=\"randomness\" type=\"hidden\" id=\"randomness\" value=\"$random_code\">
<p><br />
<input name=\"submit\" type=\"submit\" id=\"submit\" value=\"$lang_submit\" class=\"mailform_button\">
</form>"
;
}
else
{



if (
$checkdomain == "yes"
{
$sender_domain substr($senders_email, (strpos($senders_email'@')) +1);
$recipient_domain substr($sendto_email, (strpos($sendto_email'@')) +1);
if (
$sender_domain == $recipient_domain)
{
print 
"Sorry, you cannot send messages from this domain ($sender_domain)";
exit;

}


$info_notice $lang_sent;
/* THE FOLLOWING CODE FORMATS THE EMAIL CONTENT */
//We create a mail_message field with any POSTED FORM ELEMENT.
//To access such an element, we use the name of any form input with a 
//$ symbol before it, so for example to get their name, I use senders_name
$mail_subject "Email enquiry from Elite Tradesmen website";

$mail_message "***<b>ELITE TRADESMEN WEBSITE - QUOTE FOR WORK</b>***<br/><br/>"$mail_message ."Job Number: "$job_number "<br/><br/>Business Name: "$your_business_name "<br/><br/>Email: "$senders_email "<br/><br/>Start Date: "$your_start_date ."<br/><br/>Completion Date: "$your_completion_date ."<br/><br/>Quote with additional information: "$additional_information;

/* END CODE TO FORMAT MAIL CONTENT */


//$mail_message = stripslashes($mail_message);
$senders_email preg_replace("/[^a-zA-Z0-9s.@-_]/""-"$senders_email);
$senders_name preg_replace("/[^a-zA-Z0-9s]/"" "$senders_name);
$headers "From: $senders_name <$senders_email> \r\n";
$headers .= "MIME-Version: 1.0\r\n"
$headers .= "Content-type: text/html\r\n";
$headers .= "X-Mailer: Mailscript by Dave Hayward [url="http://www.megaginge.info"][color=#660000]http://www.megaginge.info[/color][/url] [email="megaginge@gmail.com"][color=#660000]megaginge@gmail.com[/color][/email] \r\n";
mail($sendto_email$mail_subject$mail_message$headers);
// THE FOLLOWING CODE SORTS THE REDIRECT TO THANKS PAGE //
?>

<script type="text/javascript">
<!--
window.location = "thankyou5.html";
//-->
</script>
<?
//END OF REDIRECT CODE

}

?>
Welcome to Web Design Forums!
What is Web Design Forums?
Web Design Forums is dedicated to helping its users of the web design community of all skill levels with their problems. With supportive members, a friendly environment, and posts without bias, WDF goes above and beyond achieving this goal. Learn more.
Before Posting
Note that some forums have their own additional rules.
Before you participate in discussions at Web Design Forums, you must read and agree to the forum rules.
Today at WDF
Web Design Forums
About WDF
WebDesignForums.net is owned and operated by Transio, LLC - a Miami, FL web design and software development company.
Recent Unanswered Questions
Lightbox Problem
in Web Design Discussion by jj1
July 3 '09, 05:24 AM
Image Rotation
in Web Design Discussion by Hitch - CP
July 1 '09, 08:43 AM
Hover Delay?
in Javascript, AJAX, and JSON by alsnchns
June 29 '09, 12:09 PM
"Site of the Month" Contest
Vote for your favorite entry in this month's contest! Voting is over at the end of the month.
Last Month's Winner medlington won with 50% of the vote with the entry: Sing Aloud

View the Hall of Fame for more information about this and past winners.
Your Reputation
Register at Web Design Forums and make quality posts to earn reputation!
Statistics
Members: 19,406 (see who's online)
Newest Member: KenRock
Posts: 175,081
Threads: 28,113
View moderating team
Happy Birthday
Today's Birthdays: malecon (40), caleb (30), demcdon (23), steve7376 (33), design (31), SpinA (21). Is it your birthday? Set your birthday while registering.