View Single Post
  #1  
Old 08-11-2005, 01:53 AM
General Nuisance is offline General Nuisance
Registered User

Join Date: Oct 2004
Posts: 616

Send a message via ICQ to General Nuisance
yet another problem...

hey guys im beginning to think that this board was created just for me.. lol

just made this become affiliates script and its getting this error...

Parse error: parse error, unexpected $ in /var/www/localhost/htdocs/novazone/become_affiliates.php on line 61

i have looked over it and found a few minor issues but still didnt fix the error...

//I know there isnt any mysql_connect commands..//

PHP Code:
<?php

$self 
$_SERVER['PHP_SELF'];
$email $_POST['email'];
$wn $_POST['wn'];
$wurl $_POST['wurl'];
$wage $_POST['wage'];
?>
<html>
<body text="#FFFFFF" background="themes/default/back.gif" link="#FFFFFF" vlink="#FFFFFF" alink="#339933">

To become an Affiliate With The Nova-Zone we expect the following:
<BR>
<BR>
<li>That your site has been in operation for a least 30 days</li>
<li>Not A squad</li>
<li>Must Have a Paid Domain</li>
<BR>
<BR>
If your site contains ANY* of the following it will be removed ASAP.
<BR>
<BR>
<LI>ANY* FORM OF CHEATS THIS INCLUDES LINKS OR DOWNLOADS</li>
<li>ANY FORM OF PORNOGRAPHIC MATERIAL</li>
<li>Not active</li>
<BR>
<BR>
We also request that you add our link to your site.
<BR>
<BR>
If you feel that your site matches the above requirements then feel free to submit your request using the form below.
<BR>
<BR>
<form method="POST" action="<?php echo (' $self ');?>">
  Your Email Address: <input type="text" name="email" size="20"></p>
  <p>Your Websites Name: <input type="text" name="wn" size="20"></p>
  <p>Your Websites URL: <input type="text" name="wurl" size="20"></p>
  <p>How long your site has been around*THIS WILL BE CHECKED*:
  <input type="text" name="wage" size="20"></p>
  <p><input type="submit" value="Submit" name="submit"></p></form>
<?php
if( $email and $wn and $wurl and $wage )
{
//create the query//
$sql="insert into affiliates (email, wn, wurl, wage) values ( $email, '$wn', '$wurl', '$wage')";
//EXECUTE THE QUERY//
$rs $DB->Query$sql );
//confirm the added entry//
if($rs)
{
echo 
'Thank You For submiting Your Request we will be in contact with you.'
}
?>
* = BUT NOT LIMITED TO.
</body>
</html>
Thanks in advance..
__________________
The Nova-Zone


http://youraite.yourhost.yourusername.com - long urls
-looks bad
-who can remember it?
- Solution?
- Get a short Nova-Zone subdomain! Yoursite.nova-zone.com
- Now thats smart. just ask for one via pm,email or contact page on site.
Reply With Quote