Jump to content

dp69_2001

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by dp69_2001

  1. Oh my hell! Thank you. Those 3 lines should be: $email = 'dallas@drpgraphicdesign.com'; $subject = 'BOB -' . $name . 'has submitted a ballot'; $to = 'dp69_2001@msn.com'; Thank you so much for pointing that out. I'd hoped it was just a mistake like that somewhere and that I could finish this damn thing. They've been nagging me about it since Monday. I will definitely be trying learn more about arrays before doing anything similar.
  2. No I just changed the email addresses to someone@drpgraphicdesign & someone@msn.com before posting the code on here.
  3. Some, I didn't know that there was a limit on how much I could POST. I've never done anything this... long winded before.
  4. It's too much? What else can I do?
  5. Sorry for the double post, I put the or die() on after mail() as a desperate attempt to see if It'd give me any indication of what I'd done wrong.
  6. It's been a few years since I've done any PHP and for some reason my big mouth got me into a project for work. I can't figure out why this isn't working! Thank you in advance to anyone that can help me. <!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>Thank You!</title> <style type="text/css"> body { margin-left: 10%; margin-right: 10%; Margin-top: 20px; Padding: 5px; font-size: 1em; border: 1px dotted gray; background-color: #C4D3FF; letter-spacing:+0.1em; } h3, h2, h1 { font-family: sans-serif; text-align: center; } table {width: 80%; margin-left: 15%; margin-right: 5%; column-width: 50%; } #submitbutton { float: right; } </style> </head> <body> <?php $burger = $_POST['burger']; $restservice = $_POST['restservice']; $fries = $_POST['fries']; $buffet = $_POST['buffet']; $steak = $_POST['steak']; $carryout = $_POST['carryout']; $pizza = $_POST['pizza']; $asian = $_POST['asian']; $mexican = $_POST['mexican']; $deli = $POST['deli']; $dessert = $_POST['dessert']; $onionrings = $_POST['onionrings']; $bbq = $_POST['bbq']; $kidsmeal = $_POST['kidsmeal']; $restbreakfast = $_POST['restbreakfast']; $dutchoven = $_POST['dutchoven']; $seafood = $_POST['seafood']; $restaurantoverall = $_POST['restaurantoverall']; $atmosphere = $_POST['atmosphere']; $speed = $_POST['speed']; $value = $_POST['value']; $service = $_POST['service']; $delivery = $_POST['delivery']; $drivethru = $_POST['drivethru']; $fastfoodoverall = $_POST['fastfoodoverall']; $fastbreakfast = $_POST['fastbreakfast']; $coffeeshop = $_POST['coffeeshop']; $pharmacy = $_POST['pharmacy']; $clothing = $_POST['clothing']; $trophies = $_POST['trophies']; $tanning = $_POST['tanning']; $phonedealer = $_POST['phonedealer']; $beautysalon = $_POST['beautysalon']; $computerssoftware = $_POST['computerssoftware']; $electronics = $_POST['electronics']; $massagesalon = $_POST['massagesalon']; $florist = $_POST['florist']; $bakery = $_POST['bakery']; $giftshop = $_POST['giftshop']; $localowned = $_POST['localowned']; $hardware = $_POST['hardware']; $tattoo = $_POST['tattoo']; $lumber = $_POST['lumber']; $bookstore = $_POST['bookstore']; $jewelry = $_POST['jewelry']; $shoestore = $_POST['shoestore']; $nurserygarden = $_POST['nurserygarden']; $bank = $_POST['bank']; $skillednursing = $_POST['skillednursing']; $upholstery = $_POST['upholstery']; $apartments = $_POST['apartments']; $daycare = $_POST['daycare']; $prefabhomes = $_POST['prefabhomes']; $mortgageco = $_POST['mortgageco']; $commserv = $_POST['commserv']; $healthcare = $_POST['healthcare']; $lodging = $_POST['lodging']; $garagedoor = $_POST['garagedoor']; $placework = $_POST['placework']; $healthcare = $_POST['healthcare']; $realestate = $_POST['realestate']; $pestcontrol = $_POST['pestcontrol']; $signshop = $_POST['signshop']; $petgrooming = $_POST['petgrooming']; $taxidermist = $_POST['taxidermist']; $printshop = $_POST['printshop']; $institution = $_POST['institution']; $utilities = $_POST['utilities']; $rental = $_POST['rental']; $vet = $_POST['vet']; $pet = $_POST['pet']; $vision = $_POST['vision']; $bedbreakfast = $_POST['bedbreakfast']; $attorney = $_POST['attorney']; $mortgage = $_POST['mortgage']; $electrician = $_POST['electrician']; $mailman = $_POST['mailman']; $mechanic = $_POST['mechanic']; $busdriver = $_POST['busdriver']; $chiropractor = $_POST['chiropractor']; $principal = $_POST['principal']; $dentist = $_POST['dentist']; $teacher = $_POST['teacher']; $doctor = $_POST['doctor']; $custodian = $_POST['custodian']; $contractor = $_POST['contractor']; $cafeteria = $_POST['cafeteria']; $surgeon = $_POST['surgeon']; $schoolaide = $_POST['schoolaide']; $hairstylist = $_POST['hairstylist']; $clergy = $_POST['clergy']; $nailtech = $_POST['nailtech']; $caterer = $_POST['caterer']; $insuranceagent = $_POST['insuranceagent']; $butcher = $_POST['butcher']; $investmentplanning = $_POST['investmentplanning']; $realestateagent = $_POST['realestateagent']; $obgyn = $_POST['obgyn']; $massagetherapist = $_POST['massagetherapist']; $optometrist = $_POST['optometrist']; $accountant = $_POST['accountant']; $ophthalmologist = $_POST['ophthalmologist']; $tattooartist = $_POST['tattooartist']; $photographer = $_POST['photographer']; $baker = $_POST['baker']; $waitress = $_POST['waitress']; $bankteller = $_POST['bankteller']; $veterinarian = $_POST['veterinarian']; $gymnastics = $_POST['gymnastics']; $fishing = $_POST['fishing']; $fitness = $_POST['fitness']; $bowling = $_POST['bowling']; $sportseq = $_POST['sportseq']; $scenicdrive = $_POST['scenicdrive']; $gunshop = $_POST['gunshop']; $hiking = $_POST['hiking']; $youthprogram = $_POST['youthprogram']; $camping = $_POST['camping']; $fishingtackle = $_POST['fishingtackle']; $autoparts = $_POST['autoparts']; $autobody = $_POST['autobody']; $tuneup = $_POST['tuneup']; $gasstation = $_POST['gasstation']; $newauto = $_POST['newauto']; $oillube = $_POST['oillube']; $usedauto = $_POST['usedauto']; $tirestore = $_POST['tirestore']; $appliances = $_POST['appliances']; $flooring = $_POST['flooring']; $interior = $_POST['interior']; $furniture = $_POST['furniture']; $paintstore = $_POST['paintstore']; $furniturerental = $_POST['furniturerental']; $cabinetshop = $_POST['cabinetshop']; $acheat = $_POST['acheat']; $septic = $_POST['septic']; $building = $_POST['building']; $landscape = $_POST['landscape']; $excavating = $_POST['excavating']; $electricservice = $_POST['electricservice']; $plumbing = $_POST['plumbing']; $painting = $_POST['painting']; $roofing = $_POST['roofing']; $engineering = $_POST['engineering']; $windows = $_POST['windows']; $other1 = $_POST['other1']; $other2 = $_POST['other2']; $other3 = $_POST['other3']; $other4 = $_POST['other4']; $other4 = $_POST['other4']; ; $name = $_POST['name']; $address = $_POST['address']; $city = $_POST['city']; $state = $_POST['state']; $zip = $_POST['zip']; $phone = $_POST['phone']; $msg = "Best Food and Restaurant \n \n" . "Burger: $burger\n" . "French Fries: $fries\n" . "Steak: $steak\n" . "Pizza: $pizza\n" . "Mexican: $mexican\n" . "Dessert: $dessert\n" . "BBQ: $bbq\n" . "Breakfast: $restbreakfast\n" . "Seafood: $seafood\n" . "Atmosphere: $atmosphere\n" . "Service: $service\n" . "Buffet: $buffet\n" . "Carryout: $carryout\n" . "Asian: $asian\n" . "Deli: $deli\n" . "Onion Rings: $onionrings\n" . "Kids Meal or Menu: $kidsmeal\n" . "Dutch Oven: $dutchoven\n" . "Overall: $restaurantoverall\n \n" . "Fast Food\n \n" . "Speed: $speed\n" . "Service: $service\n" . "Drive Thru: $drivethru\n" . "Breakfast: $fastbreakfast\n" . "Value: $value\n" . "Delivery: $delivery\n" . "Overall: $fastfoodoverall\n \n" . "Best Shops & Stores\n \n" . "Coffee Shop: $coffeeshop\n" . "Clothing: $clothing\n" . "Tanning: $tanning\n" . "Beauty Salon: $beautysalon\n" . "Electronics: $electronics\n" . "Florist: $florist\n" . "Gift Shop: $giftshop\n" . "Hardware Store: $hardware\n" . "Lumber Store: $lumber\n" . "Jewelry: $jewelry\n" . "Nursery-garden: $nurserygarden\n" . "Pharmacy: $pharmacy\n" . "Trophies: $trophies\n" . "Cell Phone Dealer: $phonedealer\n" . "Computers/Software: $computerssoftware\n" . "Massage Salon: $massagesalon\n" . "Bakery: $bakery\n" . "Locally Owned: $localowned\n" . "Tattoo Parlor: $tattoo\n" . "Book Store: $bookstore\n" . "Shoe Store: $shoestore\n \n" . "Services\n \n" . "Bank: $bank\n" . "Carpet/Upholstery Cleaning: $upholstery\n" . "Day Care/Nursery School: $daycare\n" . "Mortgage Co.: $mortgageco\n" . "Health Care Facility: $healthcare\n" . "Garage Door Service: $garagedoor\n" . "Health Care Supplies: $healthcare\n" . "Pest control: $pestcontrol\n" . "Pet Grooming: $petgrooming\n" . "Print Shop: $printshop\n" . "Utility Company: $utilities\n" . "Veterinary Hospital: $vet\n" . "Vision Center: $vision\n" . "Skilled Nursing Facility: $skillednursing\n" . "Apartments: $apartments\n" . "Pre-Fab Homes: $prefabhomes\n" . "Community Service Club: $commserv\n" . "Lodging: $lodging\n" . "Best Place to Work: $placework\n" . "Real Estate Firm: $realestate\n" . "Sign Shop: $signshop\n" . "Taxidermist: $taxidermist\n" . "Institution of Higher Learning: $institution\n" . "Rental Shop: $rental\n" . "Bed and Breakfast: $bedbreakfast\n" . "Pet Store: $pet\n \n" . "Best People\n \n" . "Attorney: $attorney\n" . "Electrician: $electrician\n" . "Auto Mechanic: $mechanic\n" . "Chiropractor: $chiropractor\n" . "Dentist: $dentist\n" . "Doctor: $doctor\n" . "Gen. Contractor: $contractor\n" . "Surgeon: $surgeon\n" . "Hair Stylist: $hairstylist\n" . "Nail Tech: $nailtech\n" . "Insurance Agent: $insuranceagent\n" . "Investment/Retirement Planning: $investmentplanning\n" . "OB/GYN: $obgyn\n" . "Optomotrist: $optometrist\n" . "Ophthalmologist: $ophthalmologist\n" . "Photographer: $photographer\n" . "Waitress/Waiter: $waitress\n" . "Veterinarian: $veterinarian\n" . "Mortgage Lender: $mortgage\n" . "Mail Carrier: $mailman\n" . "Bus Driver: $busdriver\n" . "Principal: $principal\n" . "Teacher: $teacher\n" . "School Custodian: $custodian\n" . "Cafeteria Worker: $cafeteria\n" . "School Aide: $schoolaide\n" . "Clergy: $clergy\n" . "Caterer: $caterer\n" . "Butcher: $butcher\n" . "Real Estate Agent: $realestateagent\n" . "Massage Therapist: $massagetherapist\n" . "Accountant: $accountant\n" . "Tatto Artist: $tattooartist\n" . "Baker: $baker\n" . "Bank Teller: $bankteller\n \n" . "Sports & Recreation\n \n" . "Gymnastics Training/Dance Studio: $gymnastics\n" . "Fitness Center: $fitness\n" . "Sports Equipment: $sportseq\n" . "Gun/Firearm Shop: $gunshop\n" . "Youth Program: $youthprogram\n" . "Fishing Tackle: $fishingtackle\n" . "Fishing: $fishing\n" . "Bowling: $bowling\n" . "Scenic Drive: $scenicdrive\n" . "Hiking Trail: $hiking\n" . "Camping Spot: $camping\n" . "Autos and ATVs\n \n" . "Auto Parts & Rebuilders:$autoparts\n" . "Tune-Up Service: $tuneup\n" . "Auto Dealer (New): $newauto\n" . "Auto Dealer (Used): $usedauto\n" . "Auto Body Shop: $autobody\n" . "Gas Station: $gasstation\n" . "Oil & Lube Service: $oillube\n" . "Tire Store: $tirestore\n \n" . "Furniture, Appliances & decorating\n \n" . "Appliances: $appliances\n" . "Interior Decor: $interior\n" . "Paint Store: $paintstore\n" . "Cabinet Shop: $cabinetshop\n" . "Carpet/Flooring Store: $flooring\n" . "Furniture: $furniture\n" . "Furniture - Rental: $furniturerental\n \n" . "Building/Home Services\n \n" . "A/C & Heating: $acheat\n" . "Building/New Homes: $building\n" . "Excavating: $excavating\n" . "Plumbing Roofing: $plumbing\n" . "Window Replacement: $windows\n" . "Septic Tank: $septic\n" . "Landscape Co.: $landscape\n" . "Electric Co. Service: $electricservice\n" . "Painting: $painting\n" . "Engineering Firm: $engineering\n" . "Other\n \n" . "Other 1: $other1\n" . "Other 2: $other2\n" . "Other 3: $other3\n" . "Other 4: $other4\n \n" . "Personal Info\n \n" . "Name: $name\n" . "Address: $address\n" . "City: $city\n" . "State: $state\n" . "Zip: $zip\n" . "Phone: $phone\n"; $email = $_POST['someone@drpgraphicdesign.com']; $subject = $_POST['BOB -' . $name . 'has submitted a ballot']; $to = $_POST['someone@msn.com']; mail($to, $subject, $msg, 'From:' . $email) or die('unable to submit'); echo "Thank you for voting $name"; ?> </body> </html>
  7. Sorry for the double post again. But, how would I go about doing ^^ ? Or I guess, do you have time to explain it a bit?
  8. You people are absolutely incredible... that = sign has been messing with me forever... o man.
  9. Would I not want that there? OOOO lol. holy shit gotcha
  10. LOL. Because I was at the point of trying randomness to make it work... I swear to god I've had it typed just like that about 13,000 times and had it not work. But right now, I'm getting no errors. However, there seems to be a stranger problem. If I select the player option, and type in arrgh, I get nothing.. However, if I select alliance and type in wild mofos it displays some fake crap that I've added testing, not the actual data that I'm requesting, and the name arrgh is in the player column.... Is there another way I should be searching rather than LIKE?? It appears that it's returning those ones because of the space in wild mofos? and those results have no alliance? Not sure though... You can see what I'm on about http://www.pricepcrepair.com/artofwar/browse.php :/
  11. Yeah, I just made the submit name submit instead of search...
  12. You guys are absolutely amazing... That worked like a charm! Exactly what I was after.. Also, I'm glad I wasn't too far off. Because I wasn't thinking it should be too complicated, and half of the suggestions made me think I was retarded....
  13. LOL. Because I was at the point of trying randomness to make it work... I swear to god I've had it typed just like that about 13,000 times and had it not work. But right now, I'm getting no errors. However, there seems to be a stranger problem. If I select the player option, and type in arrgh, I get nothing.. However, if I select alliance and type in wild mofos it displays some fake crap that I've added testing, not the actual data that I'm requesting, and the name arrgh is in the player column.... Is there another way I should be searching rather than LIKE??
  14. The names match, I'm not sure how to use a wildcard operator. I'm really new to coding. the logic is just a table. It works if I specify a select statement without the search: $result = mysqli_query($dbc,$sql) or die("Error: " .mysqli_error($dbc)); while ($row = mysqli_fetch_array ($result)) { echo '<tr><td>' . $row['player'] . '</td>'; echo '<td>' . $row['city'] . '</td>'; echo '<td>' . $row['alliance'] . '</td>'; echo '<td>' . $row['x'] . '</td>'; echo '<td>' . $row['y'] . '</td>'; echo '<td>' . $row['other'] . '</td>'; echo '<td>' . $row['porter'] . '</td>'; echo '<td>' . $row['cons'] . '</td>'; echo '<td>' . $row['spy'] . '</td>'; echo '<td>' . $row['hbd'] . '</td>'; echo '<td>' . $row['mino'] . '</td>'; echo '<td>' . $row['lbm'] . '</td>'; echo '<td>' . $row['ssd'] . '</td>'; echo '<td>' . $row['bd'] . '</td>'; echo '<td>' . $row['at'] . '</td>'; echo '<td>' . $row['giant'] . '</td>'; echo '<td>' . $row['fm'] . '</td>'; echo '<td>' . $row['ft'] . '</td>'; echo '<td>' . $row['ogre'] . '</td>'; echo '<td>' . $row['banshee'] . '</td></tr>'; } echo '</table>' ?> </body> </html>
  15. Hey guys, I'm trying to get this working... No errors right now, but I'm not returning any results :/ been messing with it for days. <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" /> <label for="search_by">Search By</label> <select name="search_by"> <option value"player">Player</option> <option value"city">City</option> <option value"alliance">Alliance</option> <option value"browse">Browse</option> </select> <input type="text" name"search"> <input type="submit" value="search" name="search"> <?php $search_by = $_POST['search_by']; $search = $_POST['search']; echo "<table><tr><td>Player</td><td>city</td><td>alliance</td><td>x</td><td>y</td><td>other</td><td>porters</td><td>conscripts</td><td>Spies</td><td>HBD</td><td>Minos</td><td>LBM</td><td>SSD</td><td>BD</td><td>AT</td><td>Giants</td><td>Mirrors</td><td>Fangs</td><td>ogres</td><td>banshee</td></tr>" ; $dbc = mysqli_connect('xx', 'xx', 'xx', 'xx') or die ('Error connecting to MySQL server'); $sql = "SELECT * FROM players WHERE ('$search_by') LIKE ('$search') "; //problem is here^^?? $result = mysqli_query($dbc,$sql) or die("Error: " .mysqli_error($dbc)); Not sure, any help would be greatly appreciated.
  16. Ha, I'm entirely confused now...
  17. Awesome, that did fix the syntax errors. But, I'm not getting any data into the new 'temp' table... I'm simply trying to pull the columns player, alliance, x, y, from the 'players' table; and place them in name, alliance, x coord, y coord, in the temp table... Well actually, it's more complicated than that... I want to SELECT those four columns from the data which are LIKE 'whatever column data' and have it placed into the 'temp' table... Which doesn't seem to be working... lol.
  18. Also, sorry for the double post. But, I had it typed in the same manner as shown: <a href="http://www.1keydata.com/sql/sqlinsert.html">here</a> and was still experiencing the same sort of errors... which currently is: Parse error: syntax error, unexpected ')' in /home/content/64/4940664/html/artofwar/refresh.php on line 6 line 6 is "FROM 'players' ") ;
  19. WTF is wrong with this syntax?? I've mixed it up quite a bit since I first typed it so hopefully it's not worse off than when I started. $refresh = "INSERT INTO temp (name, alliance, x coord, y coord " . "SELECT 'player', 'alliance', 'x', 'y' " . "FROM 'players' ") ; Again, I love and appreciate all of your help... I see myself becoming a regular here once I actually learn something :/
  20. I'd messed with it and somehow ended up as line #38 I have echo "<table><tr><td>Player</td><td>city</td><td>alliance</td><td>x</td><td>y</td><td>other</td><td>porters</td><td>conscripts</td><td>Spies</td><td>HBD</td><td>Minos</td><td>LBM</td><td>SSD</td><td>BD</td><td>AT</td><td>Giants</td><td>Mirrors</td><td>Fangs</td><td>ogres</td><td>banshee</td></tr>" ; $search_by = $_POST['search_by']; $search = $_post['search']; $dbc = mysqli_connect('xx'); $query = "SELECT * FROM players WHERE '$search_by' = '$search' "; $result = mysqli_query($dbc,$query) or die("Error: " .mysqli_error($dbc)); while ($row = mysqli_fetch_array ($result)) { echo '<tr><td>' . $row['player'] . '</td>'; echo '<td>' . $row['city'] . '</td>'; echo '<td>' . $row['alliance'] . '</td>'; echo '<td>' . $row['x'] . '</td>'; echo '<td>' . $row['y'] . '</td>'; echo '<td>' . $row['other'] . '</td>'; echo '<td>' . $row['porter'] . '</td>'; echo '<td>' . $row['cons'] . '</td>'; echo '<td>' . $row['spy'] . '</td>'; echo '<td>' . $row['hbd'] . '</td>'; echo '<td>' . $row['mino'] . '</td>'; echo '<td>' . $row['lbm'] . '</td>'; echo '<td>' . $row['ssd'] . '</td>'; echo '<td>' . $row['bd'] . '</td>'; echo '<td>' . $row['at'] . '</td>'; echo '<td>' . $row['giant'] . '</td>'; echo '<td>' . $row['fm'] . '</td>'; echo '<td>' . $row['ft'] . '</td>'; echo '<td>' . $row['ogre'] . '</td>'; echo '<td>' . $row['banshee'] . '</td></tr></table>'; } ?> Now, it's returning data... But for some reason, it either returns no data, or all of the data... So I've probably messed it up somehow... Now, it's not displaying in the table :/ guess I should study a bit more before trying something which seems to be rather complicated. But, I was kind of excited to give it a try...
  21. Believe it or not, even though I totally messed that up on that entire section... That doesn't solve the problem at all. :/ EDIT: Sorry, I guess I was doing the concaten...whatever wrong... I think it should be fixed in a moment, hope it works Thank you.
  22. ugh... I'm a total PHP nub and I'm having trouble with: $search_by = $_POST['search_by']; $search = $_post['search']; $dbc = mysqli_connect('xx', 'artofwarsomerset', 'xx', 'artofwarsomerset') or die ('Error connecting to MySQL server'); $query = "SELECT * FROM players WHERE '$search_by' = '$search' "; $result = mysqli_query($dbc,$query) or die("Error: ".mysqli_error($dbc)); echo "<table><tr><td>Player</td><td>city</td><td>alliance</td><td>x</td><td>y</td><td>other</td><td>porters</td><td>conscripts</td><td>Spies</td><td>HBD</td><td>Minos</td><td>LBM</td><td>SSD</td><td>BD</td><td>AT</td><td>Giants</td><td>Mirrors</td><td>Fangs</td><td>ogres</td><td>banshee</td></tr>" ; while ($row = mysqli_fetch_array ($result)) { echo '<tr><td> $row['player'] </td>'; echo '<td> . $row['city']</td>'; echo '<td> . $row['alliance']</td>'; echo '<td> . $row['x']</td>'; echo '<td> . $row['y']</td>'; echo '<td> . $row['other']</td>'; echo '<td> . $row['porter']</td>'; echo '<td> . $row['cons']</td>'; echo '<td> . $row['spy']</td>'; echo '<td> . $row['hbd']</td>'; echo '<td> . $row['mino']</td>'; echo '<td> . $row['lbm']</td>'; echo '<td> . $row['ssd']</td>'; echo '<td> . $row['bd']</td>'; echo '<td> . $row['at']</td>'; echo '<td> . $row['giant']</td>'; echo '<td> . $row['fm']</td>'; echo '<td> . $row['ft']</td>'; echo '<td> . $row['ogre']</td>'; echo '<td> . $row['banshee']</td></tr></table>'; } ?> Error shows up on line 35 but I'm not sure what I've done... Also, the xx's on my dbc statement were on purpose. Current error is: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/64/4940664/html/artofwar/browse.php on line 35, I can't figure out where the hell it wants a ;...
  23. Figured that out, I wasn't too far off, I just needed to replace my html " 's with ' 's Thank you so much for your help ken. Couldn't have done it without ya. I do wonder if there's a way for it to tell me which value is which though. I doubt I'll go digging around for it though, really happy that I've gotten it this far. lol. Thank you so much for your time.
  24. Holy crap! I'm a retard! lol. Anyway, it's working like a charm now with <!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" /> <?php $name = $_POST['author']; $email = $_POST['email']; $location = $_POST['location']; $customer = $_POST['customer']; $text = $_POST['text']; $future = $_POST['future']; $website = $_POST['website']; $features = $_POST['features']; $email_from = 'survey@pricepcrepair.com.com'; $to = "dprice@pricepcrepair.com"; $subject = "New Form submission from $name"; $message = "You have received a new message from the user $name.\n Here is the message: \n $name \n $email \n $location \n $customer \n $text \n $future \n $website \n $features"; mail ($to,$subject,$message,$headers); echo "Survey submitted, Thank you for your participation!" ?> I still would like to figure out how to get the echo to show more, or maybe display/redirect to an html page if possible. Can someone explain that a little better or point me in the right direction to learn more about doing that? That would be epic.
  25. Woot! Hey that manual was a big help! It's sending messages now and I figured out how to make it give them a message after submission! For some reason though, I'm not getting a subject or body in the E-mail. Current code looks like: <!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" /> <?php $name = $_POST['author']; $email = $_POST['email']; $location = $_POST['location']; $customer = $_POST['customer']; $text = $_POST['text']; $future = $_POST['future']; $website = $_POST['website']; $features = $_POST['features']; $email_from = 'survey@pricepcrepair.com.com'; $to = "dprice@pricepcrepair.com"; $email_subject = "New Form submission from $name"; $email_body = "You have received a new message from the user $name.\n Here is the message: \n $name \n $email \n $location \n $customer \n $text \n $future \n $website \n $features"; mail ($to,$subject,$message,$headers); echo "Survey submitted, Thank you for your participation." ?> You've really been a huge help, I'm digging through that manual trying to figure out how to make this work. Also, is there a way to add a link in the echo? Say like, Thank you for your participation! Return to http://www.pricepcrepair.com? or something similar?
×
×
  • 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.