Jump to content

seriosbrad

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by seriosbrad

  1. I have this script setup to send a mail to myself when someone fills out a form. What I want is the same thing mailed as a reciept to the person that filled out a form but only with a change of it's content. It should come from no-reply@domain.com so they can't reply to the reciept and the only change in the content that is mailed should be a line of added text like "This is a reciept of your inquiry - you can not reply to this" <? $subject="Domain.com Inquiry: ".$_GET['subject']; $headers= "From: ".$_GET['email']."\n"; $headers.='Content-type: text/html; charset=iso-8859-1'; mail("ADMIN_EMAIL@gmail.com", $subject, " <html> <head> <title>Contact letter</title> </head> <body> <table class='readonly' cellspacing='0' style='width:100%;border-bottom:1px solid #eee;font-size:12px;line-height:135%;font-family:Lucida Grande, Tahoma, Arial, sans-serif;'> <tr style='background-color:#F5F5F5'> <th style='vertical-align:top;color:#222;text-align:left;padding:7px 9px 7px 9px;border-top:1px solid #eee;'> Name: <span class='req' style='color:red'>*</span> </th> <td style='vertical-align:top;color:#333;width:60%;padding:7px 9px 7px 0;border-top:1px solid #eee;'> <span class='fn n'> <span class='given-name'>".$_GET['firstname']."</span> <span class='family-name'>".$_GET['lastname']."</span> </span> </td> </tr> <tr style='background-color:#FFFFFF'> <th style='vertical-align:top;color:#222;text-align:left;padding:7px 9px 7px 9px;border-top:1px solid #eee;'> E-Mail: <span class='req' style='color:red;'>*</span> </th> <td style='vertical-align:top;color:#333;width:60%;padding:7px 9px 7px 0;border-top:1px solid #eee;'> <a class='email' href='mailto:".$_GET['email']."'>".$_GET['email']."</a> </td> </tr> <tr style='background-color:#F5F5F5'> <th style='vertical-align:top;color:#222;text-align:left;padding:7px 9px 7px 9px;border-top:1px solid #eee;'> What would you like help with? </th> <td style='vertical-align:top;color:#333;width:60%;padding:7px 9px 7px 0;border-top:1px solid #eee;'> <div>".$_GET['subject']."</div> </td> </tr> <tr style='background-color:#FFFFFF'> <th style='vertical-align:top;color:#222;text-align:left;padding:7px 9px 7px 9px;border-top:1px solid #eee;'> Please provide us with more details. <span class='req' style='color:red'>*</span> </th> <td style='vertical-align:top;color:#333;width:60%;padding:7px 9px 7px 0;border-top:1px solid #eee;'> <div>".$_GET['message']."</div> </td> </tr> </table> </body> </html>" , $headers); echo (" <html xmlns='http://www.w3.org/1999/xhtml' class=' firefox'> <head> <title> AYS Contact </title> <!-- Meta Tags --> <meta http-equiv='REFRESH' content='5;url=http://www.domain.com'> <meta name='robots' content='index, nofollow, noarchive' /> <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> <meta name='description' content='Contact form for Domain.com' /> <!-- CSS --> <link rel='stylesheet' href='http://www.domain.com/contact/css/forms/dynamic.css' type='text/css' /> </head> <body id='public' > <div id='container'> <h1 id='logo'> <a href='http://www.domain.com' title='domain name'>domain name</a> </h1> <form id='contact_form' name='contact_form' class='wufoo topLabel page1' autocomplete='off' name='contact_form' action='contact.php' method='get' onsubmit='return formCheck(this);'> <div class='info'> <h2>domain - Confirmation</h2> <div>Thank you for contacting me - Please wait 5 seconds to be redirected or click <a href='http://www.domain.com'>here</a></div> </div> </form> </div> </body> </html> "); ?> $_GET['email'] gets their email from the form
  2. Would you look at that, it works! Thanks premiso you've been a great help!
  3. Alright I have a link that generates an online/offline image according to the status of a server. http://www.domain.com/script.php?ip=11.11.111.111&port=12354 By directly going to that link, it displays the image fine. However what I want to do is use that link like this: <img src="http://www.domain.com/script.php?ip=11.11.111.111&port=12354"> and [img=http://www.domain.com/script.php?ip=11.11.111.111&port=12354] And have that turn into an image based on the status of the server. Here is my script <?php $ip = $_GET["ip"]; $port = $_GET["port"]; $timeout = 1; function ip($address){ list($ip,$port)=explode(":",$address); if($fp=@fsockopen($ip,$port,$ERROR_NO,$ERROR_STR,1)) { print "<img src='images/status/up.png'>"; fclose($fp); }else{ print "<img src='images/status/down.png'>"; } } ip("$ip:$port"); ?> Please bare in mind that I am not a coder, I can understand some thing from copy+pasting and trial & error.
  4. I've encountered this error more than once on my new shared host. Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/.fringer/seriosbrad/seriosfm.com/modules/mod_shoutcastextended.php on line 24 How can I work around this, or fix it?
×
×
  • 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.