Jump to content

CalumT

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

CalumT's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey again, I'm making a fake emailer for my site, It obviously will have a note at the bottem "This is FAKE email, it was sent using....". So don't worry. I cannot get the script to work, though, the PHP for it is this: [code]      <?     $a=addslashes(strip_tags($_GET['a']));                  if(isset($_POST['submit']) && $a == "send"){     $target=addslashes(strip_tags($_POST['target']));     $max= $_POST['237828678966342834424'];     $subject =addslashes(strip_tags($_POST['subject']));     $message =addslashes(strip_tags($_POST['message']));     $totalsent = 0;     $fake=addslashes(strip_tags($_POST['fake']));     $headers = 'From: ' . $fake . "\r\n" .     'Reply-To: ' . $fake;     while($totalsent < $max){         mail($target, $subject, $message, $headers);         $totalsent += 1;         echo("Email sent!");     } } ?>[/code] You can view it in context here: [a href=\"http://calum-land.com/emailer.php\" target=\"_blank\"]http://calum-land.com/emailer.php[/a], note that the amount of emails to send is [u]not[/u] activated, I just haven't added the Javascript to tell the user this yet. Can anyone help? Thanks ~Calum
  2. [!--quoteo(post=369548:date=Apr 28 2006, 07:16 AM:name=craygo)--][div class=\'quotetop\']QUOTE(craygo @ Apr 28 2006, 07:16 AM) [snapback]369548[/snapback][/div][div class=\'quotemain\'][!--quotec--] gethostbyname requires enclosed (). so it should be [code]$ipaddress = gethostbyname ('$site');[/code] Ray [/quote] Thanks Ray, but there's still an error, If I put in Microsoft.com, I get this [i] The IP address of microsoft.com is $site[/i] Any ideas?
  3. Hey there PHP freaks, I'm trying to build a basic domain to IP address translator, I have this code: [code]<?php $site=addslashes(strip_tags($_POST['site'])); $ipaddress = gethostbyname $site; echo "The IP address of $site is $ipaddress"; ?>[/code] But It returns this error when I submit the form I created: [i]Parse error: parse error, unexpected T_VARIABLE in /home/calumla/public_html/processip.php on line 97[/i] Line 97, with my HTML is this: [code]$ipaddress = gethostbyname $site;[/code] All help is appriciated, thanks! ~Calum
×
×
  • 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.