Jump to content

!jazz

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

!jazz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yeah thanks. Do you or someone else got some other suggestions? JaZz
  2. Like: <?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['email'] ; $subject = "Job Application" ; $firstname = $_REQUEST['firstname'] ; $lastname = $_REQUEST['lastname'] ; $age = $_REQUEST['age'] ; $reason = $_REQUEST['reason'] ; $timezone = $_REQUEST['timezone'] ; $times = $_REQUEST['times'] ; $to = $email; $subject = $subject; $message = $firstname."\n"; $message .= $lastname."\n"; $message .= $reason."\n"; $message .= $timezone."\n"; $message .= $times."\n"; $headers = 'From: boxerman@uksbestsite.com' . "\r\n" . 'Reply-To: boxerman@uksbestsite.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); echo "Thank you for applying!, please allow upto 24 hours for reply!"; } else //if "email" is not filled out, display the form { echo "<form method='post' action='djapp.php'> First Name: <input name='firstname' type='text' /><br /> Last Name: <input name='lastname' type='text' /><br /> Email: <input name='email' type='text' /><br /> Age: <input name='age' type='text' /><br /> Time Zone: <input name='timezone' type='text' /><br /> Times Can DJ: <input name='times' type='text' /><br /> Reason for applying:<br /> <textarea name='message' rows='10' cols='40' /> </textarea><br /> <input type='submit' /> </form>"; } ?> JaZz
  3. mail( "boxerman@uksbestsite.com", "Subject: $subject", $firstname, $lastname, $age, $reason, $timezone, $times, "From: $email" ); I think you're using the mail() function not correctly. PHP.NET JaZz
  4. What exactly do you want? A pagination tool? Sorry I just don't get it :-) JaZz
  5. Try this class. It is very powerful and extensible! http://www.christian-seiler.de/projekte/php/bbcode/index_en.html JaZz
  6. Hi Guys, I'm currently developing a small Mysql wrapper and I'd like to ask you for a little help. How would you improve this method?: <?php public function sendQuery($Statement=NULL, $Variables=array()) { if($Statement!=NULL) { if($Variables!=NULL) { $Vars = NULL; if(is_array($Variables) && count($Variables)>0) { foreach($Variables as $key => $value) { $Vars .= ',\''.$this->escapeString($value).'\''; } } $Statement = '$query = sprintf("'.$Statement.'"'.$Vars.');'; eval($Statement); $query = mysql_query($query, $this->LinkID); if($query) { $this->Query = $query; } else { $this->errorSET('Query could not be executed', true); } } else { $query = mysql_query($Statement, $this->LinkID); if($query) { $this->Query = $query; } else { $this->errorSET('Query could not be executed', true); } } return $this->Query; } return false; } ?> So long, JaZz
×
×
  • 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.