Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. It seems most of my posts are invisible, did you try anything i said?
  2. Ok, would of helped if you said that , although i don't see why , it doesn't seem a very logical way to do it, but first test it as it may show you where the error was, and if not then post the code with all the changes you made so i can see where the came from
  3. The var is called $smallest not $small ?
  4. Try <?php header("Cache-control: private"); if(isset($_POST['submit'])) { $problem = FALSE; if (empty ($_POST['namef'])) { $problem = TRUE; } if (empty ($_POST['subjectf'])) { $problem = TRUE; } if (empty ($_POST['emailf'])) { $problem = TRUE; } if (empty ($_POST['messagef'])) { $problem = TRUE; } if(!$problem) { $namef = $_POST['namef']; $subjectf = $_POST['subjectf']; $emailf = $_POST['email']; $messagef = $_POST['messagef']; $sendmail = " $namef $emailf $subjectf $messagef "; //THis code has some big secuirty issues mail ('aebstract@gmail.com', 'Vengeance - Contact Form', $sendmail, 'From: '.$emailf.''); header("Location: site.php?page=contact&msg=sent"); } ?> <html> <p class="bodycontent"> <table width="750"> <tr> <td valign="top" width="350"> <center> Phone: 678-513-7105<br /> Fax: 678-513-7063<br /><br /><br /> Monday - Friday: 10:00am - 5:00pm<br /> (Close 12:00 noon - 1:00pm)<br /> Saturday - By Appointment Only<br /><br /> Mike (Owner/President)<br /> <a href="mailto:mike@vengeancerd.com">mike@vengeancerd.com</a><br /><br /> Ron Mowen (General Manager/Sales)<br /> <a href="mailto:ron@vengeancerd.com">ron@vengeancerd.com</a><br /><br /> Buddy Daniel (Project Specialist/Technician)<br /> <a href="mailto:buddy@vengeancerd.com">buddy@vengeancerd.com</a><br /><br /> Charlie Hill (Pedders Suspension Specialist)<br /> <a href="mailto:charlieh@vengeancerd.com">charlieh@vengeancerd.com</a><br /><br /> </center> </td> <td align="right"> <?php if (isset($_GET['msg'])) { $content ="Thank you. Your message has been received and will be viewed shortly."; } else { ?> <form method="POST" action="site.php?page=contact" name="contact"> <table> <tr><td valign="top" align="right"> Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="<?php if(isset($_POST['namef'])){echo $_POST['namef'];}?>" /> </td></tr> <tr><td valign="top" align="right"> Email: </td><td> <input type="text" class="txt" name="emailf" maxlength="20" size="20" value="<?phpif(isset($_POST['emailf'])){echo $_POST['emailf'];}?>" /> </td></tr> <tr><td valign="top" align="right"> Subject: </td><td> <input type="text" class="txt" name="subjectf" maxlength="20" size="20" value="<?phpif(isset($_POST['subjectf'])){echo$_POST['subjectf'];}?>" /> </td></tr> <tr><td valign="top" align="right"> Message: </td><td> <textarea name="messagef" cols="36" rows="4" class="txt"></textarea> </td></tr> <tr><td></td><td align="right"> <input type="submit" value="Send" /> </td> </tr> </table> </form> <?php } ?> </td> </tr> </table> <br /><br /> <center> 241 Castleberry Industrial Drive, Suite B<br /> Cumming, GA 30040 <br /> <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&output=embed&s=AARTsJoOEagJWyUHYTOwV8tNEUfVYaHWXQ"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&hl=en&geocode=&q=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&sll=37.0625,-95.677068&sspn=33.764224,79.101563&ie=UTF8&ll=34.207614,-84.144716&spn=0.008608,0.019312&z=14&g=241+Castleberry+Industrial+Dr+Cumming,+GA+30040-9051,+US&source=embed" style="color:#0000FF;text-align:left" target="_blank">View Larger Map</a></small> </center> </p>
  5. Does it print the array in the function? $random_numbers If not then try printing it outside and see if it is a problem somewhere else.
  6. No i didn't , and if you want help i would be a little more polite? Is this the line with the first index error? Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="$_POST[namef]" /> If so it is because of it missing '' in the $_POST Name: </td><td> <input type="text" class="txt" name="namef" maxlength="20" size="20" value="$_POST['namef']" />
  7. There is nothing wrong with your script.If it works without the $header variable being passed, then that means your host doesn't allow you to use a "From" address that it doesn't recognize. Setup an account like info@yourdomain.com and use that email as the From. It could be more than that, it could be like my host which will only allow an email account set up on them to be used, or for all we know the mail feature might be disabled by the host for his account type. Edit: If it works without the $header variable being passed, then that means your host doesn't allow you to use a "From" address that it doesn't recognize. You failed to mention what i did above, that's all i was pointing out, no need to get defensive.
  8. PHP manual? http://uk3.php.net/manual/en/ini.core.php#ini.register-globals http://uk3.php.net/register_globals
  9. where is $random_max and $random_numbers Defined, and used?
  10. You can't use it like that i don't think, if you want to do that look at PHPmailer.
  11. They must not match up, if they did the error wouldn't show, post your form here.
  12. Try using an email address that is real, and if that doesn't work use one you have registered on the host.
  13. No varaible called that, it should look like $content = Note the missing . And the form input fields must be called the same as that. e.g. $var1 = $_POST['field1'];//this will cause error , it should be $_POST['field']; <input type="text" name="field">
  14. I think no one is answering because there aren't code tags and its long and boring to read. Try summing it up with vital points and the mentioned code.
  15. One , don't ask for help on code you didn't write and don't understand, and two we are not going to make it better for you, if you want to optimise it go ahead, and if you get stuck then ask for help.
  16. Same, but that is because it is posted in PHP help and this forum section is for helping with PHP code, from people who have normally coded it. My advice is to go and learn HTML,CSS and maybe some PHP. Then you will be able to fix these problems faster and most likely on your own.
  17. If you want help try posting your attempt at integrating the code here and tell us where and what the problem is, and then someone may reply. Thanks, My.Grumpypants
  18. I am not writing this for you. But an example would be either div.innerHTML = "<?php echo " Put database stuff here"; ?>" or <span id="test" style="visibility:hidden;"><?php echo "DB stuff here"; ?></span>
  19. Don't hijack threads, and don't expect an answer when you do, start your own thread and someone may reply.
  20. Are you serious? We are here to help people with php problems, not write stuff for them. I suggest putting a request in the freelance forum.
  21. I don't think they create php variables, i think you will need something like $thename = $_POST['thename']; etc.
  22. Lol, no it doesn't it says no input file specified. Maybe check your site now and then ?
  23. Now, no offence, but if you are designing and most likely even coding the site ( except maybe the PHP) in dreamweaver, i don't see why you have a NDA as it is not exactly a very proffesional way of creating a site. I mean this as in using tables instead of pure css (div,span, etc.) and using dreamweaver to code alot of it. When you have fixed the errors, repost the code if there is still a problem.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.