February 22nd, 2013, 01:15 PM
-
If the code we speak of is in its own .php file, and this is the entire code, then make sure it starts with <?php and ends with ?>
February 22nd, 2013, 01:21 PM
-
Originally Posted by Triple_Nothing
If the code we speak of is in its own .php file, and this is the entire code, then make sure it starts with <?php and ends with ?>
sorry silly mistake,
Code:
Name: <br />
E-mail: <br />
Subject: <br />
<!-- Hosting24 Analytics Code -->
<script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
<!-- End Of Analytics Code -->
this is what was returned on the view source
February 22nd, 2013, 01:32 PM
-
Well, unless the server is hiding them, you're getting no errors, so the variables should exist, but appear to be blank. What does the 'name' input of your form look like?
Something similar to:
<INPUT type="text" name="name" />
???
And, if you don't mind, can you post your form code?
February 22nd, 2013, 01:39 PM
-
Originally Posted by Triple_Nothing
Well, unless the server is hiding them, you're getting no errors, so the variables should exist, but appear to be blank. What does the 'name' input of your form look like?
Something similar to:
<INPUT type="text" name="name" />
???
And, if you don't mind, can you post your form code?
Code:
<html>
<head>
<meta charset="UTF-8">
<title>Contact - Draig Racing</title>
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body>
<div class="page">
<div class="header header-contact">
<a href="index.html" id="logo"><img src="images/logo.png" alt="logo"></a>
<ul>
<li>
<a href="index.html">Home</a> <span></span>
</li>
<li>
<a href="about.html">About</a> <span></span>
</li>
<li>
<a href="news.html">News</a> <span></span>
</li>
<li>
<a href="http://www.draigracing.co.uk/phpBB3/index.php">Forum</a> <span></span>
</li>
<li class="selected">
<a href="contact.html">Contact</a> <span></span>
</li>
</ul>
<div class="featured">
<h4>Got something to say...??</h4>
<h3>Contact Us!</h3>
<p>
If you wish to comment or ask questions regarding either Draig Racing or the website then just fill in the form below and send it off to us.
</p>
</div>
</div>
<div class="body">
<div class="sidebar">
<div>
<h3>Connect</h3>
<a href="https://twitter.com/DraigRacing/" id="twitter">twitter</a> <a href="https://www.facebook.com/DraigRacing" id="fb">fb</a> <a href="http://freewebsitetemplates.com/go/googleplus/" id="googleplus">google+</a>
</div>
<div>
<div>
<h3>Links for you</h3>
<ul>
<li>
<h4><a href="http://www.draigracing.co.uk/phpBB3/index.php">Draig Racing Forum</a></h4>
<p>
Why not chat to the team, discuss team positions, places we may race and general team chit chat.
</p>
</li>
<li>
<h4><a href="http://www.autosport.com">Autosport</a></h4>
<p>
All your auto sport information available here for you.
</p>
</li>
<li>
<h4> </h4>
<p> </p>
</li>
</ul>
</div>
</div>
<div>
<div>
<h3>Miscellaneous link one</h3>
<ul>
<li>
<h4><a href="news.html">Draig Racing Masters 2010</a></h4>
<p><img src="images/800px-MmckeeMasters2010.jpg" width="178" height="146"></p>
</li>
<li>
<h4><a href="news.html">Your Name Here</a></h4>
<p>
If you wish to be a partner of Draig Racing the head to our Contact page.</p>
</li>
</ul>
</div>
</div>
</div>
<div class="content contact">
<p>
This form will automatically send your comments and questions to the admin of Draig Racing.</p>
<p>We would like to take this opportunity to thankyou for all comments and questions sent to us. If you are requiring a reply to your message, we endevour to do this within 48hrs of all correspondance.</p>
<form action="simplemail.php" enctype="text/plain" method="post" target="_new">
<label for="name">
<input type="text" id="name" name="name" value="Full Name" onblur="this.value=!this.value?'Full Name':this.value;" onfocus="this.select()" onclick="this.value='';">
Enter your full name here.</label>
<label for="email">
<input type="text" id="email" name="email" value="Email Address" onblur="this.value=!this.value?'Email Address':this.value;" onfocus="this.select()" onclick="this.value='';">
Enter your email address here.</label>
<label for="subject">
<input type="text" id="subject" name="subject" value="Subject" onblur="this.value=!this.value?'Subject':this.value;" onfocus="this.select()" onclick="this.value='';">
Enter the Subject message here.</label>
<label for="message">
<textarea name="message" id="message" cols="30" rows="10" onblur="this.value=!this.value?'Message':this.value;" onfocus="this.select()" onclick="this.value='';">Message</textarea>
<span>Enter your Message here.</span></label>
<label for="subscribe" class="subscribe">
<input type="checkbox" id="subscribe" name="subscribe">
Subscribe to newsletter</label>
<label for="agree" class="agree">
<input type="checkbox" id="agree" name="agree">
I agree to the Terms and Conditions</label>
<input type="submit" value="" id="submit">
</form>
</div>
</div>
<div class="footer">
<ul>
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="about.html">About</a>
</li>
<li>
<a href="news.html">News</a>
</li>
<li>
<a href="http://www.draigracing.co.uk/phpBB3/index.php">Forum</a>
</li>
<li>
<a href="contact.html">Contact</a>
</li>
</ul>
<p>
© Copyright 2013. Draig Racing all rights reserved
</p>
</div>
</div>
</body>
</html>
this is the full HTML code for the page,
the part you specifically asked for is
Code:
<label for="name">
<input type="text" id="name" name="name" value="Full Name" onblur="this.value=!this.value?'Full Name':this.value;" onfocus="this.select()" onclick="this.value='';">
Enter your full name here.</label>
is this anyhelp??
February 22nd, 2013, 01:51 PM
-
February 22nd, 2013, 01:53 PM
-
Originally Posted by Triple_Nothing
Ignore
ignore what???
February 22nd, 2013, 01:58 PM
-
I posted an bad response since I got a few peeps' issues going thru my head, and it was inaccurate for yours, srry.
For some testing, mind taking the onblur, onfocus, and onclick items from simply your name box and see if that helps? The code looks fine, so it must be a tricky thing.
February 22nd, 2013, 02:05 PM
-
ok i took all that off,
and still its coming back with blank data......
still confuzzled
February 22nd, 2013, 02:40 PM
-
February 22nd, 2013, 02:44 PM
-
so all i gotta do is take out enctype="text/plain" part of the script
then it should work all ok???
February 22nd, 2013, 02:49 PM
-
Yep. If you've no true reason to really define such, which in this case it seems you have not, then you can safely remove it and all will be good.
February 22nd, 2013, 02:55 PM
-
ooook,
so if i take off the echo part we put on it should work ok??
February 22nd, 2013, 03:00 PM
-
hey Triple, All working fine...
Massive thankyou for your precious time, and also your patients working with me.
Massive Kudos to you..