nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   Software Development (http://www.nvnews.net/vbulletin/forumdisplay.php?f=53)
-   -   Some HTML/CGI/Perl i don't know what language help needed! (http://www.nvnews.net/vbulletin/showthread.php?t=117145)

hokeyplyr48 08-01-08 11:15 AM

Some HTML/CGI/Perl i don't know what language help needed!
 
i'm fairly proficient in html code, but what i need i feel is outside of this realm. (CGI scripts i believe)

I'm adding something to a website for my dad's company and what they want is a confidentiality agreement to access certain parts of the website. On someone elses website, they have this setup, which is similary but not completely what i want. button to access data:
http://img379.imageshack.us/img379/6...nallinkeo1.jpg
once you click that, it brings you to a page that has the confidentiality agreement and at the bottom it has a "electronically sign and submit button" like so:

http://img377.imageshack.us/img377/9...andsignab4.jpg

then it gives you access to a page where you can view information and download documents.

I need something like this but slightly different. In addition to the 'electronically sign and submit' button, i need it to do:
  • have boxes where they can enter their contact information
  • won't allow you to 'sign' it unless this contact information is filled in
  • send an email to the person 'signing it'
  • and send an email to me, or whoever on our end with their information

is this doable or is this just ridiculously difficult?
i tried finding some premade solutions, and biz mail form seemed like it would do half of it, but i couldn't figure out how to get it to work.

any help is most appreciated!

ViN86 08-01-08 01:11 PM

Re: Some HTML/CGI/Perl i don't know what language help needed!
 
PHP will do it. easily.

hokeyplyr48 08-01-08 01:15 PM

Re: Some HTML/CGI/Perl i don't know what language help needed!
 
alright. do you know how to write it or can you point me to someone/somewhere that would help?

ViN86 08-01-08 01:26 PM

Re: Some HTML/CGI/Perl i don't know what language help needed!
 
k, here's how i would do it.

First, add the necessary textboxes.

Put them in a single form.

Have the form action be the page they want to view.

In order to view the page, all variables (name/address/etc.) must be posted.

When those things are posted, PHP can be used to send an email to you containing the information. Then have it store either a cookie or a session variable for the user. Then require the session or cookie variable to be set in order to view the page (use a redirect or error page if the variable is not set).


Sending mail in PHP:
http://email.about.com/cs/phpemailtips/qt/et031202.htm

PHP Forms:
http://www.w3schools.com/php/php_forms.asp

PHP Sessions and Cookies:
http://devzone.zend.com/article/646-...the-cookie-jar

NOTE: session variables are destroyed when the client leaves the site or closes the browser. cookies are destroyed when they either expire or the user deletes them.

fivefeet8 08-04-08 07:39 PM

Re: Some HTML/CGI/Perl i don't know what language help needed!
 
You'll likely also need some way to record their information when they acknowledge the disclaimer. You can use a Mysql database to store the information.

hokeyplyr48 08-05-08 01:47 PM

Re: Some HTML/CGI/Perl i don't know what language help needed!
 
Now, all i'm pretty much looking for is a PHP login script using a mysql database i believe. I need some forms with name, address, phone, city, state, etc. so they can register and then a login form for the future. I've found some tutorials but i just don't really know how to do any of them. i've made this for the registration:
http://svnjs.exofire.net/registration.php

i've tried this one:
http://www.evolt.org/article/PHP_Log...ture/17/60265/
but don't exactly know what to do. i've made all the files with the specified names but don't really know what to do now. any ideas?

ViN86 08-05-08 02:21 PM

Re: Some HTML/CGI/Perl i don't know what language help needed!
 
k, ill throw in some help here.

first, you need to rename each field to a name that describes what it is (ie usernameTextbox, passwordTextbox, etc.). set the name and id fields to that value for each text box. second, make sure the password field type is set to password. you may want to add a second so users have to enter it twice.

on the checklogin.php page you can obtain the variable values using the $_POST['nameoftextbox'] superglobal variable. make sure each field has data entered by using if($_POST['variable'] != "") statements (you can include all of them at once using an AND (&&) operator.

then you need to create your database (use phpmyadmin or a similar mysql admin tool to make it easier). then create the connection in the php page and connect, escape the info to be entered (to protect your db) then execute a query to enter the info.

im sorry, this must seem overwhelming. if you have a steam ID, pm it to me and i will be happy to help you through it when i can. sorry i dont have time right now but i will be back to answer questions.

Gfyt 11-23-10 04:02 AM

Re: Some HTML/CGI/Perl i don't know what language help needed!
 
For sending email you can use php forms builder. It generates a code that can be easily copied and pasted to any web page

t3hl33td4rg0n 11-24-10 06:07 PM

Re: Some HTML/CGI/Perl i don't know what language help needed!
 
hurr


All times are GMT -5. The time now is 12:09 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.