<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-13"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1">Hi Kingsley,<br>
<br>
You may also want to make email a unique field, allowing only 1 person
per email address.. can be a good idea. Also, while it is a good idea
to have a seperate config file, its not totally necessary as PHP is a
server side language, and thus the code contained within is parsed
before it reaches the presentation layer, so the user will not see it.<br>
<br>
Cheers; Dan<br>
</font><br>
Kingsley Haldane Bugarin OAM wrote:
<blockquote cite="mid1147846869.6893.68.camel@localhost.localdomain"
 type="cite">
  <pre wrap="">Hi all

Is anyone here good with PHP and Javascript?  I need a page written and
I don't have the skills.  I can pay for this but I don't have much.  I
also don't require ownership of the code, just use of it.

The page I require will collect details from a form and enter it into a
MySQL database.  Users will be redirected to the form page from PayPal
after making a contribution through a donate button.

The page needs to check the referring domain to make sure it is
<a class="moz-txt-link-abbreviated" href="http://www.paypal.com">www.paypal.com</a>.  If it isn't then the page should open a new popup with
a "page not found" error and close.  You may have a better way to do
this but it is to prevent users accessing the page directly.  My server
details are:

Redhat9, PHP 5.x, MySQL 5.x

I have created the database, table and columns:

contrib
        data
                id              int(10)  NOT NULL  auto_increment 
primary
                firstname       varchar(20)  NOT NULL
                lastname        varchar(20)  NOT NULL
                email           varchar(35)  NOT NULL
               warrior         varchar(3)  NOT NULL

The id column must be unique but there can be duplicates in other
columns.

This will probably require some sort of config file to contain dbname,
dbuser, dbpwd and dbhost so they aren't accessible to the user through
"view source".  I have adapted a conf.inc file from another web site for
this.

The form page should close after the user clicks 'enter' to submit and
open a new popup displaying the message "Your details have been entered
into the database.  Thank you." and a close button.

The files will go into:

/home/httpd/html/contrib/contrib.html  --  Main page with donate button
/home/httpd/html/frump/enter.html  --  Form page
/home/httpd/cgi-bin/.contrib_inc/contrib_conf.inc  --  config page

I have done some work on these files but enter.html and contrib_conf.inc
require a lot of work.

Regards
Kingsley

  </pre>
</blockquote>
</body>
</html>