Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
CJ Webmaster Forums Forum Index » XHTML/HTML

Post new topic   
IP's Something with IPS! - (Solved) Goto page Previous  1, 2, 3  Next
View previous topic :: View next topic  
Author Message
darkcarnival
CJ-Design.com Admin



Joined: 10 Jul 2003
Posts: 1357
Location: Michigan

PostPosted: Thu Jan 12, 2006 9:48 pm    Post subject: Reply with quote

i guess i wasnt clear enough

any php code must be between these lines:

<? ?>

also it should look like:

<? echo $_SERVER['REMOTE_ADDR']; ?>
_________________
Admin of CJ-Design Forum
watch out spammers, I'm watching you! Twisted Evil

Elite Bulletin Board v0.5 try it out today!
http://www.elite-board.z42.us/

version 0.9 coming soon!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
tonesy
Junior Member


Joined: 29 Dec 2005
Posts: 25

PostPosted: Thu Jan 12, 2006 9:59 pm    Post subject: Reply with quote

Ok thank... Your a star... One final thing... Can you not bypass a proxy cos that just shows the proxy and not the actualy ip... or could i put...

Ure IP ???.???.???.?

Proxy Detected ??.???.??.???

Hope so... cheers mate
Back to top
View user's profile Send private message Visit poster's website
darkcarnival
CJ-Design.com Admin



Joined: 10 Jul 2003
Posts: 1357
Location: Michigan

PostPosted: Thu Jan 12, 2006 10:05 pm    Post subject: Reply with quote

i wouldnt know anything about proxys

but i wouldnt worry about those
_________________
Admin of CJ-Design Forum
watch out spammers, I'm watching you! Twisted Evil

Elite Bulletin Board v0.5 try it out today!
http://www.elite-board.z42.us/

version 0.9 coming soon!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
tonesy
Junior Member


Joined: 29 Dec 2005
Posts: 25

PostPosted: Thu Jan 12, 2006 10:08 pm    Post subject: Reply with quote

Do you think on of the other great dudes on here would be able to help me?

Thanks!

There was a script somewhere about this but I dnt no how to implement in into what i want!
Back to top
View user's profile Send private message Visit poster's website
darkcarnival
CJ-Design.com Admin



Joined: 10 Jul 2003
Posts: 1357
Location: Michigan

PostPosted: Thu Jan 12, 2006 10:11 pm    Post subject: Reply with quote

well phpdummy might know about proxys, i dont know much about them sadly
_________________
Admin of CJ-Design Forum
watch out spammers, I'm watching you! Twisted Evil

Elite Bulletin Board v0.5 try it out today!
http://www.elite-board.z42.us/

version 0.9 coming soon!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
PHPDUMMY
CJ-Design.com Moderator



Joined: 09 Mar 2005
Posts: 561
Location: South East Kentucky,U.S.A.

PostPosted: Fri Jan 13, 2006 3:44 pm    Post subject: Reply with quote

Then use the code I provided for you above and walla, you'll be happy. Wink
_________________
Cheers,
Danny
C-J Search Engine All Tidied Up V4.0http://www.cj-design.com/forum/viewtopic.php?t=1820

C-J Search Engine MySQL !http://www.cj-design.com/forum/viewtopic.php?t=1555
Back to top
View user's profile Send private message
PHPDUMMY
CJ-Design.com Moderator



Joined: 09 Mar 2005
Posts: 561
Location: South East Kentucky,U.S.A.

PostPosted: Fri Jan 13, 2006 3:46 pm    Post subject: Reply with quote

yes , you can by-pass proxies but it takes about 1-mile of php code to do it....
_________________
Cheers,
Danny
C-J Search Engine All Tidied Up V4.0http://www.cj-design.com/forum/viewtopic.php?t=1820

C-J Search Engine MySQL !http://www.cj-design.com/forum/viewtopic.php?t=1555
Back to top
View user's profile Send private message
GodfatherUK
CJ-Design.com Moderator



Joined: 17 Sep 2004
Posts: 218
Location: UK

PostPosted: Mon Jan 16, 2006 11:13 pm    Post subject: Reply with quote

Code:
<?php
if ($_SERVER["HTTP_X_FORWARDED_FOR"]) {
   if ($_SERVER["HTTP_CLIENT_IP"]) {
   $proxy = $_SERVER["HTTP_CLIENT_IP"];
  } else {
   $proxy = $_SERVER["REMOTE_ADDR"];
  }
  $ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
} else {
  if ($_SERVER["HTTP_CLIENT_IP"]) {
   $ip = $_SERVER["HTTP_CLIENT_IP"];
  } else {
   $ip = $_SERVER["REMOTE_ADDR"];
  }
}
?>


Then in the actual page, you can do as follows

Code:
<b>IP Address:</b> <?php echo($ip);
if (isset($proxy)) {
  echo "<br><b>Proxy Detected:</b> $proxy";
}
?>

_________________
GodfatherUK
CJ Designs Forum Moderator

"I dont think i am good at coding.. But i KNOW im good at helping"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tonesy
Junior Member


Joined: 29 Dec 2005
Posts: 25

PostPosted: Wed Jan 18, 2006 8:46 am    Post subject: Reply with quote

Cheers everyone for the help... The ip and proxy thing works like a beut...

Can I just ask how old are all you people because I read somewhere one of you was only about 15... That cant be right... Can it??? Question Question

If it is then you are too brainy for me... am 17 next month and dnt have a clue... anyway

thanks...

gud luk this year!!!

Tonesy!
Back to top
View user's profile Send private message Visit poster's website
tonesy
Junior Member


Joined: 29 Dec 2005
Posts: 25

PostPosted: Wed Jan 18, 2006 9:05 am    Post subject: Reply with quote

Hold It... HOLD IT!!

I used the code supplied above and it worked sweet on the form page... I have a script which is just a simple form 2 email script...

I was wonderin how i can implement the code above so that the

Code:
<b>IP Address:</b> <?php echo($ip);
if (isset($proxy)) {
  echo "<br><b>Proxy Detected:</b> $proxy";
}
?>


part is sent with the email message... i played about with it but i keep getting a unexpected "<" or T-String error or some random bullshit like that!!!

can you help???
Back to top
View user's profile Send private message Visit poster's website
GodfatherUK
CJ-Design.com Moderator



Joined: 17 Sep 2004
Posts: 218
Location: UK

PostPosted: Wed Jan 18, 2006 1:22 pm    Post subject: Reply with quote

Right, well if you want it sent through a form, you need to include the IP address in the form itself. The best way to do this is to send it through a text input, like follows:

Code:
<input type="hidden" name="ipaddress" size="20" value="<?php echo($ip); ?>">
<?php
if (isset($proxy)) {
  echo "<input type=\"hidden\" name=\"proxyaddress\" size=\"20\" value=\"$proxy\">";
}
?>


And then of course you want to send this information through to the email address. I will use the mailing script i have on my contact form to show how to implement the sending..

Code:

$to = "$_POST[sendto]";
$subject = "Contact Via Website\r\n";
$mailheaders = "From:  $_POST[name] <> \r\n";
$mailheaders .= "Reply-To: $_POST[email]\r\n\r\n";

$msg = "You have Recieved A Message Via Your Site.\r\n";
$msg .= "Sender's Name:    $_POST[name]\r\n";
$msg .= "Sender's E-Mail:   $_POST[email]\r\n";
$msg .= "Sender's IP Address:   $_POST[ipaddress]\r\n";
if (isset($proxy)) {
$msg .= "Proxy Detected:   $_POST[proxyaddress]\r\n";
}
$msg .= "Message:              $_POST[message]\r\n\r\n";
// send the mail
mail($to, $subject, $msg, $mailheaders);

_________________
GodfatherUK
CJ Designs Forum Moderator

"I dont think i am good at coding.. But i KNOW im good at helping"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
darkcarnival
CJ-Design.com Admin



Joined: 10 Jul 2003
Posts: 1357
Location: Michigan

PostPosted: Wed Jan 18, 2006 2:27 pm    Post subject: Reply with quote

tonesy wrote:
Can I just ask how old are all you people because I read somewhere one of you was only about 15... That cant be right... Can it??? Question Question

If it is then you are too brainy for me... am 17 next month and dnt have a clue... anyway

thanks...

gud luk this year!!!

Tonesy!


well I'm 19 going on 20 but i first started to learn web stuff when i was 14 and actually started to program my own own code at around 16 or 17 Wink

but its not odd for a 16 year old to do this, its easy to do but thats just me.

you'll find it weasy too after a while so dont think your dumb for not understanding it so soon Wink
_________________
Admin of CJ-Design Forum
watch out spammers, I'm watching you! Twisted Evil

Elite Bulletin Board v0.5 try it out today!
http://www.elite-board.z42.us/

version 0.9 coming soon!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
GodfatherUK
CJ-Design.com Moderator



Joined: 17 Sep 2004
Posts: 218
Location: UK

PostPosted: Wed Jan 18, 2006 3:28 pm    Post subject: Reply with quote

tonesy wrote:
Can I just ask how old are all you people because I read somewhere one of you was only about 15... That cant be right... Can it??? Question Question

If it is then you are too brainy for me... am 17 next month and dnt have a clue... anyway

thanks...

gud luk this year!!!

Tonesy!


I am 19 at the moment.. 20 in May.
I started doing basic websites when i was about 14/15 just using HTML. Then i stopped for a few years and took it back up at 17. I then moved on to SHTML and built bigger and bigger websites at a time.
Then i got stuck not knowing where to go from there, so i went into PHP with HTML. That opened up a whole new world for me as i could start working on such things as forms and variables
I am currently learning about PHP/MySQL but with the amount of work i do, i hardly find the time. My hope is to build a membership script onto my site and then go from there and work on bigger and bigger scripts
_________________
GodfatherUK
CJ Designs Forum Moderator

"I dont think i am good at coding.. But i KNOW im good at helping"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tonesy
Junior Member


Joined: 29 Dec 2005
Posts: 25

PostPosted: Wed Jan 18, 2006 7:24 pm    Post subject: Reply with quote

Hey godfather...

Sorry I dont get your instructions... firstly i would like to implement
Code:
<b>IP Address:</b> <?php echo($ip);
if (isset($proxy)) {
  echo "<br><b>Proxy Detected:</b> $proxy";
}
?>

into the script so it sends it on the bottom of my forms... which i already told you so sorry...

the form 2 mail script i use at the moment is the following... Please note it is from the internet and NOT my script...
Code:

<?php

/*

Thank you for choosing FormToEmail by FormToEmail.com

Version 1.4 November 27th 2005

COPYRIGHT FormToEmail.com 2003 - 2005

You are not permitted to sell this script, but you can use it, copy it or distribute it, providing that you do not delete this copyright notice, and you do not remove any reference to FormToEmail.com

DESCRIPTION

FormToEmail allows you to place a form on your website which your visitors can fill out and send to you.  The contents of the form are sent to the email address which you specify below.  The form allows your visitors to enter their name, email address and comments.  If they try to send a blank form, they will be returned to the form.

Your visitors (and nasty spambots!) cannot see your email address!

When the form is sent, your visitor will get a confirmation of this on the screen, and will be given a link to continue to your homepage, or other page if you specify it.

Should you need the facility, you can add additional fields to your form, which this script will also process, without making any additional changes.

This is a PHP script.  In order for it to run, you must have PHP (version 4.1.0 or later) on your webhosting account.  If you are not sure about this, then ask your webhost about it.

SETUP INSTRUCTIONS

Step 1: Put the form on your webpage
Step 2: Enter your email address and continue link below
Step 3: Upload the files to your webspace

Step 1:

To put the form on your webpage, copy the code below as it is, and paste it into your webpage:

<form action="FormToEmail.php" method="post">
<table border="0" bgcolor="#ececec" cellspacing="5">
<tr><td><font face="arial" size="2">Name</font></td><td><input type="text" size="30" name="Name"></td></tr>
<tr><td><font face="arial" size="2">Email address</font></td><td><input type="text" size="30" name="Email"></td></tr>
<tr><td valign="top"><font face="arial" size="2">Comments</font></td><td><textarea name="Comments" rows="6" cols="30"></textarea></td></tr>
<tr><td> </td><td><input type="submit" value="Send"><font face="arial" size="1">  FormToEmail by <a href="http://FormToEmail.com">FormToEmail.com</a></font></td></tr>
</table>
</form>

Step 2:

Enter the email address below to send the form to:

*/

$my_email = "admin@tonesy.com";

/*

Enter the continue link to offer the user after the form is sent.  If you do not change this, your visitor will be given a continue link to your homepage:

If you do change it, remove the "/" symbol below and replace with the name of the page to link to, eg: "mypage.htm" or "http://www.elsewhere.com/page.htm"

*/

$continue = "admin_confirm.htm";

/*

Step 3:

Save this file (FormToEmail.php) and upload it together with your webpage to your webspace.  IMPORTANT - The file name is case sensitive!  You must save it exactly as it is named above!  Do not put this script in your cgi-bin directory (folder) it may not work from there.

THAT'S IT, FINISHED!

You do not need to make any changes below this line.

*/

// This line prevents values being entered in a URL

if ($_SERVER['REQUEST_METHOD'] != "POST"){exit;}

// Check for disallowed characters in the Name and Email fields.

$disallowed_name = array(':',';',"'",'"','=','(',')','{','}','@');

foreach($disallowed_name as $value)
{

if(stristr($_POST[Name],$value)){header("location: $_SERVER[HTTP_REFERER]");exit;}

}

$disallowed_email = array(':',';',"'",'"','=','(',')','{','}');

foreach($disallowed_email as $value)
{

if(stristr($_POST[Email],$value)){header("location: $_SERVER[HTTP_REFERER]");exit;}

}

$message = "";

// This line prevents a blank form being sent

while(list($key,$value) = each($_POST)){if(!(empty($value))){$set=1;}$message = $message . "$key: $value\n\n";} if($set!==1){header("location: $_SERVER[HTTP_REFERER]");exit;}

$message = $message . "-- \nThis was sent via the Admin Contact Form!" ;
$message = stripslashes($message);

$subject = "FormToEmail Comments";
$headers = "From: " . $_POST['Email'] . "\n" . "Return-Path: " . $_POST['Email'] . "\n" . "Reply-To: " . $_POST['Email'] . "\n";

mail($my_email,$subject,$message,$headers);

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<?php
if ($_SERVER["HTTP_X_FORWARDED_FOR"]) {
   if ($_SERVER["HTTP_CLIENT_IP"]) {
   $proxy = $_SERVER["HTTP_CLIENT_IP"];
  } else {
   $proxy = $_SERVER["REMOTE_ADDR"];
  }
  $ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
} else {
  if ($_SERVER["HTTP_CLIENT_IP"]) {
   $ip = $_SERVER["HTTP_CLIENT_IP"];
  } else {
   $ip = $_SERVER["REMOTE_ADDR"];
  }
}
?>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Welcome to the Final Design</title>
<base target="_self">
</head>

<body bgcolor="#339966">

<p align="center"><u><font color="#CCFF99"><span style="font-size: 13pt"><b>
Contact Me!</b></span></font></u></p>
<p align="center"> 
<h1 align="center"><font color="#CCFF99" size="4">Thank you <?php print stripslashes($_POST['Name']); ?>!</br><font color="#FF9933"><b>IP Address:</b> <?php echo($ip);
if (isset($proxy)) {
  echo "<br><b>Proxy Detected:</b> $proxy";
}
?></font></h1>
</p>
<p align="center"><b><font color="#CDDCE9">Thanks for emailing me. <br>
Please allow up to five working days before I reply as I am very busy!</font></b></p>
<p align="center"> </p>
<p align="center"><b><font color="#CDDCE9">.: Thanks :.</font></b></p>

</body>

</html>


Geeee... i no its long... lol anyway i have put the ip bit in there so when it comes up with a confirmation and has the ip and proxy details there. You get me??? Question

Anyway I was wondering if you could implement the code into this for me...

what were you asking about my form?? Its a basic form... Just asks for name, email and comments...

Cheers...

Tonesy!
Back to top
View user's profile Send private message Visit poster's website
GodfatherUK
CJ-Design.com Moderator



Joined: 17 Sep 2004
Posts: 218
Location: UK

PostPosted: Wed Jan 18, 2006 9:58 pm    Post subject: Reply with quote

Well i thought in this instance, it might be an idea to give you a new script to use which might be a little easier for you to customise!

contact/config.php

Code:
<?php

/// CONFIG (YOU MAY EDIT THIS)

$sitename = "My Site";               // Your site name
$pagename = "Contact";               // Name this page!

$admin_email = "admin@domain.com";         // Your default email address

$mailsubject = "Message from your site!";      // Subject for your email

$confirmation = "Your message has been sent!";      // Confirmation Message!

$info = "Use the form below to contact me!";      // Just an introuction to the page, leave blank for nothing!

// Want to ban some fools? Lets do that here!

$bannedname = array('admin');            // Name bans EG. array('admin','name','bob');
$bannedemail = array('admin@domain.com');      // Email bans EG. array('admin@domain.com','me@mysite.com');


// Lets do some styles

$stylesheet = "http://www.domain.com/styles.css";   // Got your own stylesheet you want to use? If not leave blank!

$textcolor = "black";               // No stylesheet? What colour do you want your text?
$bgcolor = "white";               // No stylesheet? What colour do you want your background?

$alertcolor = "#FF0000";            // Colour for Confirmation messages
$errorcolor = "#FF0000";            // Colour for Error messages

?>


The config file is what you will edit the most..!
This is where you can put in all themain varibales that will be needed to make the script look/work how you want it to!

--

contact/form.php

Code:

<form method="POST" action="http://www.domain.com/contact.php">
  <div align="center">
    <center>
    <table border="0" cellspacing="1" width="600" id="ContactForm" height="155">
      <tr>
        <td width="50%" align="right" height="22">
        <p align="right">Name: </td>
        <td width="50%" align="left" height="22">
  <input type="text" name="name" size="20" value="<?php echo($name); ?>"></td>
      </tr>
      <tr>
        <td width="50%" align="right" height="22">
        <p align="right">Email: </td>
        <td width="50%" align="left" height="22">
  <input type="text" name="email" size="20" value="<?php echo($email); ?>"></td>
      </tr>
      <tr>
        <td width="50%" align="right" height="19">
        <p align="right"> </td>
        <td width="50%" align="left" height="19"> </td>
      </tr>
      <tr>
        <td width="50%" align="right" height="33">Message: </td>
        <td width="50%" align="left" height="33">
        <textarea rows="5" name="message" cols="25"><?php echo($message); ?></textarea></td>
      </tr>
    </table>
    </center>
  </div>
  <p align="center">
<input type="hidden" name="ip" size="20" value="<?php echo($ip); ?>">
<?php
if (isset($proxy)) {
?>
<input type="hidden" name="proxy" size="20" value="<?php echo($proxy); ?>">
<?php
}
?>
  <input type="submit" value="Send" name="sendmail"><input type="reset" value="Reset" name="reset"></p>
</form>
<br><br>
<div align="center"><i>For security reasons, your IP Address has been recorded!</i>
<br>
<b>IP Address:</b> <?php echo($ip); ?>
<?php
if (isset($proxy)) {
?>
<br><b>Proxy Detected:</b> <?php echo($proxy); ?>
<?php
}
?>


The form can be editted, as its just pure HTML..
You will need to edit the action to direct it to the contact page!

contact.php

Code:
<?php

include "contact/config.php";


// Part of CJ Design Web2mail Script
$email = $_POST['email'];
$emailvalid = is_valid_email($email);
// Done with that

// Lets do the IP Checks.. Hell if they are using a proxy, we'll expose that too!
if ($_SERVER["HTTP_X_FORWARDED_FOR"]) {
   if ($_SERVER["HTTP_CLIENT_IP"]) {
   $proxy = $_SERVER["HTTP_CLIENT_IP"];
  } else {
   $proxy = $_SERVER["REMOTE_ADDR"];
  }
  $ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
} else {
  if ($_SERVER["HTTP_CLIENT_IP"]) {
   $ip = $_SERVER["HTTP_CLIENT_IP"];
  } else {
   $ip = $_SERVER["REMOTE_ADDR"];
  }
}
// All done there!

?>
<html>

<head>
<meta http-equiv="Content-Language" content="en-gb">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?php echo($sitename); ?> :: <?php echo($pagename); ?></title>

<?php
if ($stylesheet == ""){
?>
<style type="text/css">
  body {
    color: <?php echo($textcolor); ?>;
    background-color: <?php echo($bgcolor); ?> }
  </style>
<?php
}
else {
?>
<link rel="stylesheet" type="text/css" href="<?php echo($stylesheet); ?>">
<?php
}
?>

</head>

<body>

<!-- ENTER YOUR HEADER BELOW! -->



<!-- OK LETS STOP THERE! -->

<?php
if ($info != ""){
?>
<p align="center"><?php echo($info); ?></p>
<?php
}
?>

<p align="center"> </p>
<?php

if(isset($_POST['sendmail'])){

$theirname = $_POST['name'];
$theiremail = $_POST['email'];
$theirmsg = $_POST['message'];

      /// Error Checking!

         if ($theirname == ""){
         $alert = "An Error Has Occured:";
         $error = "<li> You have not entered your name";
         $send = "no";
         }
         if (in_array($theirname, $bannedname)) {
         $alert = "An Error Has Occured:";
         $error .= "<li> You have not entered a valid name";
         $send = "no";
         }
         if (in_array($theiremail, $bannedemail)){
         $alert = "An Error Has Occured:";
         $error .= "<li> You have not entered a valid email";
         $send = "no";
         }
         if (!isset($theiremail) || $theiremail == "" || $emailvalid == 1){
         $alert = "An Error Has Occured:";
         $error .= "<li> You have not entered a valid email";
         $send = "no";
         }
         if ($theirmsg == ""){
         $alert = "An Error Has Occured:";
         $error .= "<li> You have not entered a message";
         $send = "no";
         }
         if (($theirname != "") && (!in_array($theirname, $bannedname)) && (!in_array($theiremail, $bannedemail)) && ($theirmsg != "") && ($emailvalid != "1")){
         $send = "yes";
         }

   if ($send == "no"){
   include "contact/form.php";
   ?>
   <div align="center">
        <center>
        <table border="0" cellspacing="1" width="500" id="messages" style="color: <?php echo($errorcolor); ?>">
          <tr>
            <td>
            <?php echo($alert); ?><?php echo($error); ?>
            </td>
          </tr>
        </table>
        </center>
   </div>
      <br><br>

<?php
      }

if ($send == "yes"){

//display confirmation to user
$alert = $confirmation;

$to = $admin_email;
$subject = "$mailsubject\r\n";
$mailheaders = "From:  $_POST[name] <> \r\n";
$mailheaders .= "Reply-To: $_POST[email]\r\n\r\n";

$msg = "You have Recieved A Message Via Your Site.\r\n";
$msg .= "Sender's Name: $_POST[name]\r\n";
$msg .= "Sender's E-Mail: $_POST[email]\r\n";
$msg .= "Message: $_POST[message]\r\n\r\n";
$msg .= "IP Address: $_POST[ip]\r\n";
if (isset($proxy)) {
$msg .= "Proxy Detected: $_POST[proxy]\r\n";

// send the mail
mail($to, $subject, $msg, $mailheaders);

?>
<div align="center">
  <center>
  <table border="0" cellspacing="1" width="500" id="messages" style="color: <?php echo($alertcolor); ?>">
    <tr>
      <td>
      <?php echo($alert); ?>
      </td>
    </tr>
  </table>
  </center>
</div>
<?php
   }
}
else {
include "contact/form.php";
}
?>
</p>

<!-- ENTER YOUR FOOTER BELOW! -->



<!-- OK LETS STOP THERE! -->

</body>

</html>

<?php

/// Script from CJ Design Web2mail

function is_valid_email($email) {
    if(ereg("([[:alnum:]\.\-]+)(\@[[:alnum:]\.\-]+\.+)", $email)) {
      return 0;
    }
   else{
        return 1;
    }
}

// Cheers James!
?>


The contact page looks looooong, but it is basically loads of code to help it be more customisable for the user!
The only bit you need to edit is if you want a header or footer, and even they are just simply put in the spaces provided!
_________________
GodfatherUK
CJ Designs Forum Moderator

"I dont think i am good at coding.. But i KNOW im good at helping"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic       CJ Webmaster Forums Forum Index » XHTML/HTML All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional, Mods by CJ Website Design