Go Back   nV News Forums > Software Forums > Software Development

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-01-08, 10:15 AM   #1
hokeyplyr48
hooah
 
hokeyplyr48's Avatar
 
Join Date: Nov 2006
Location: Raleigh, North Carolina
Posts: 755
Send a message via AIM to hokeyplyr48
Default 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:

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:



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!
__________________
Main Rig:
CPU:Q6600 @ 3.5 w/ Ultra 120 extreme|| RAM: 4x2GB G. Skill || Motherboard: ABIT IP35 Pro || VideoCard: eVGA 260GTX & 7200GS for triple monitoring || Sound Card: Creative X-FI xtremegamer || Hard Drive: 2 x 150GB Raptor in RAID 0 (OS and Program Files) | 1 x 150GB Raptor (User Drive) | 1 x WD 2TB HD SATA II | 1 x 1TB Seagate | 1 x WD 500 GB HD SATA II | 1 x Seagate 400 GB HD SATA II | 1 x WD 160 GB HD IDE (slow, only for storage) || Monitor: Dell 30" 3007WFP LCD, Acer 22" widescreen, & Gateway 17" || Case: Antec 900 || PSU: 1 KW athenatech or force or something PSU || Keyboard: Logitech G15 || Mouse: Logitech MX 518 || OS: Windows 7 Build 7201 x64

Secondary Rig: FX-60, 7900GTX, 2 x 1BG OCZ Platinum, A8N32-SLI Deluxe, Antec 180, XP x32
hokeyplyr48 is offline   Reply With Quote
Old 08-01-08, 12:11 PM   #2
ViN86
 
Join Date: Mar 2004
Posts: 15,486
Default Re: Some HTML/CGI/Perl i don't know what language help needed!

PHP will do it. easily.
ViN86 is offline   Reply With Quote
Old 08-01-08, 12:15 PM   #3
hokeyplyr48
hooah
 
hokeyplyr48's Avatar
 
Join Date: Nov 2006
Location: Raleigh, North Carolina
Posts: 755
Send a message via AIM to hokeyplyr48
Default 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?
__________________
Main Rig:
CPU:Q6600 @ 3.5 w/ Ultra 120 extreme|| RAM: 4x2GB G. Skill || Motherboard: ABIT IP35 Pro || VideoCard: eVGA 260GTX & 7200GS for triple monitoring || Sound Card: Creative X-FI xtremegamer || Hard Drive: 2 x 150GB Raptor in RAID 0 (OS and Program Files) | 1 x 150GB Raptor (User Drive) | 1 x WD 2TB HD SATA II | 1 x 1TB Seagate | 1 x WD 500 GB HD SATA II | 1 x Seagate 400 GB HD SATA II | 1 x WD 160 GB HD IDE (slow, only for storage) || Monitor: Dell 30" 3007WFP LCD, Acer 22" widescreen, & Gateway 17" || Case: Antec 900 || PSU: 1 KW athenatech or force or something PSU || Keyboard: Logitech G15 || Mouse: Logitech MX 518 || OS: Windows 7 Build 7201 x64

Secondary Rig: FX-60, 7900GTX, 2 x 1BG OCZ Platinum, A8N32-SLI Deluxe, Antec 180, XP x32
hokeyplyr48 is offline   Reply With Quote
Old 08-01-08, 12:26 PM   #4
ViN86
 
Join Date: Mar 2004
Posts: 15,486
Default 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.
ViN86 is offline   Reply With Quote
Old 08-04-08, 06:39 PM   #5
fivefeet8
Ngemu Mod
 
Join Date: Jul 2003
Location: Fresno, CA
Posts: 1,886
Default 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.
__________________
[i7 2600k @4.4ghertz][2x4 GB DDR3 1600][EVGA GTX570 1.280GB SC][EVGA GTX460 physx][Asrock Extreme7 Gen3 Z68][2xSeagate 160 Gb SATA HD raid0][Seagate 250 GB SATA2 HD][Sony Bravia 40' 1080p LCD HDTV][NEC 3520a DVD+-DLw][Windows 7 Ultimate x64][Rosewill 1000w]
fivefeet8 is offline   Reply With Quote
Old 08-05-08, 12:47 PM   #6
hokeyplyr48
hooah
 
hokeyplyr48's Avatar
 
Join Date: Nov 2006
Location: Raleigh, North Carolina
Posts: 755
Send a message via AIM to hokeyplyr48
Default 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?
__________________
Main Rig:
CPU:Q6600 @ 3.5 w/ Ultra 120 extreme|| RAM: 4x2GB G. Skill || Motherboard: ABIT IP35 Pro || VideoCard: eVGA 260GTX & 7200GS for triple monitoring || Sound Card: Creative X-FI xtremegamer || Hard Drive: 2 x 150GB Raptor in RAID 0 (OS and Program Files) | 1 x 150GB Raptor (User Drive) | 1 x WD 2TB HD SATA II | 1 x 1TB Seagate | 1 x WD 500 GB HD SATA II | 1 x Seagate 400 GB HD SATA II | 1 x WD 160 GB HD IDE (slow, only for storage) || Monitor: Dell 30" 3007WFP LCD, Acer 22" widescreen, & Gateway 17" || Case: Antec 900 || PSU: 1 KW athenatech or force or something PSU || Keyboard: Logitech G15 || Mouse: Logitech MX 518 || OS: Windows 7 Build 7201 x64

Secondary Rig: FX-60, 7900GTX, 2 x 1BG OCZ Platinum, A8N32-SLI Deluxe, Antec 180, XP x32
hokeyplyr48 is offline   Reply With Quote
Old 08-05-08, 01:21 PM   #7
ViN86
 
Join Date: Mar 2004
Posts: 15,486
Default 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.
ViN86 is offline   Reply With Quote
Old 11-23-10, 03:02 AM   #8
Gfyt
Registered User
 
Join Date: Nov 2010
Posts: 1
Default 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
Gfyt is offline   Reply With Quote

Old 11-24-10, 05:07 PM   #9
t3hl33td4rg0n
Dethklok Returns!
 
t3hl33td4rg0n's Avatar
 
Join Date: Dec 2004
Location: Kent, OH
Posts: 2,142
Send a message via AIM to t3hl33td4rg0n Send a message via MSN to t3hl33td4rg0n Send a message via Yahoo to t3hl33td4rg0n
Default Re: Some HTML/CGI/Perl i don't know what language help needed!

hurr
__________________


Intel QX9650 @ 3.83GHzXFX 780ieVGA GTX 560Ti8GB GSkill DDR800Creative Sound Blaster X-Fi Titanium PCI-ESeagate 1.5TB . 4x Samsung 2TB

Quote:
Originally Posted by MowTin View Post
....it's so clear how government makes things worse not better...
t3hl33td4rg0n is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Blockly: New Visual Programming Language News Archived News Items 0 06-13-12 06:00 AM
Flame's crypto attack may have needed $200,000 worth of compute power News Archived News Items 0 06-11-12 09:40 PM
Anatomy of a hack: 6 separate bugs needed to bring down Google browser News Archived News Items 0 05-22-12 06:40 PM
OGL 2.0 standard shading language is NOT Cg! JohnsonLKD NVIDIA GeForce 7, 8, And 9 Series 4 09-19-02 12:14 AM
Thoughts on the command line as an interface. lunix Microsoft Windows XP And Vista 10 09-12-02 08:44 PM

All times are GMT -5. The time now is 07:47 PM.


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