Page 2 of 2 First 12
  • Jump to page:
    #16
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    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 ?>
  2. #17
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    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
  4. #18
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    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?
  6. #19
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    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>&nbsp;</h4>
    								<p>&nbsp;</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>
    				&#169; 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??
  8. #20
  9. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    Ignore
  10. #21
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    Originally Posted by Triple_Nothing
    Ignore
    ignore what???
  12. #22
  13. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    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.
  14. #23
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    ok i took all that off,

    and still its coming back with blank data......

    still confuzzled
  16. #24
  17. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    I figured it out. The issues is in the enctype="text/plain" part of your form tag. I removed it and all worked fine.

    My version:
    http://projects.hellzoneinc.com/devs...anksubmit.html

    The PHP processing code the form is submitted to:
    http://projects.hellzoneinc.com/devs...mitprocess.txt
  18. #25
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    so all i gotta do is take out enctype="text/plain" part of the script

    then it should work all ok???
  20. #26
  21. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2009
    Posts
    676
    Rep Power
    7
    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.
  22. #27
  23. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    ooook,

    so if i take off the echo part we put on it should work ok??
  24. #28
  25. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    52
    Rep Power
    2
    hey Triple, All working fine...

    Massive thankyou for your precious time, and also your patients working with me.

    Massive Kudos to you..
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo