[plug] PHP & Javascript
Daniel Pearson
gpearson at iinet.net.au
Wed May 17 14:24:24 WST 2006
Hi Kingsley,
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.
Cheers; Dan
Kingsley Haldane Bugarin OAM wrote:
> 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
> www.paypal.com. 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20060517/1437770e/attachment.html>
More information about the plug
mailing list