|
#1
|
||||
|
||||
|
Screen: Email Registration
Last Revision: October 8, 2004 Overview This screen allows you to have your users submit registration information to you during the installation process. The information will be submitted to a PHP script (provided below) which will in turn email the information to you. This screen can easily be modified to include more information, perform data validation, etc. The PHP script can also be easily modified to store the informaiton in a database, etc. As well as being useful in your projects, this screen will also teach you how to:
Author Information This screen was created for use by registered owners of Setup Factory 7.0 by Brett Kapilik. Indigo Rose Corporation does not provide support for any 3rd party screens or addons. Installation Instructions To make this screen available to your Setup Factory 7.0 projects, follow the steps below:
You should now be able to build and test the screen. Screen Name: Email Registration Type: Setup Factory 7.0 Screen Created By: Brett Kapilik Comments? Please post them here. |
|
#2
|
||||
|
||||
|
If anyone is familiar with ASP, please feel free to post an equivalent ASP script here.
|
|
#3
|
|||
|
|||
|
just a quick question, how do i make it so some fields are required before they can continue ???
|
|
#4
|
||||
|
||||
|
Yes, PLEASE post an autoplay script here! I have setup factory 6.0, could I use this with the earlier version?
thanks, Mike |
|
#5
|
|||
|
|||
|
Quote:
Yep that would be exactly what I am looking for too. I need the Hard Drive Serial number emailed to me, so that I may check hosw many machines the application is installed on. |
|
#6
|
|||
|
|||
|
Further Information on my last post
I can work out how to get the serial number of the hard drive, and indeed all the Hard drive information, I'm having a problem getting that into a means to display it to the person installing, and stating that this information will be sent to us. I need to get the info into a %variable%? Any help appreciated. |
|
#7
|
|||
|
|||
|
PHP file to the website?
In the setup it talks about putting the one PHP file on my website......my website is hosted by an external are there any necessary things that I need to know from them or have to tell them or can I just dump it anywhere onto an HTML based website built by frontpage 2003?
|
|
#8
|
||||
|
||||
|
Hi. If the server supports PHP you can just name any file with a .php extension, upload it, and the server will parse it as PHP. If you aren't sure whether or not your server supports PHP try this test script. Simply paste the following code into a text editor and save it as "test.php", then upload it and surf to the uploaded URL through your browser, if you have PHP you will see "Hello World!" and if not you will see all the pasted code "as is".
Code:
<?php echo "Hello World!"; ?> |
|
#9
|
|||
|
|||
|
Quote:
so you would access it via http://www.yourdomainname.com/foldername/php.file Root directory is commonly called "public_html" but some servers have other names for it you would need to check with your provider. To make it work, so long as it's in the same directory as you upload your html files to, it should work. Remember to configure the php file before you upload it, and i recommentd you do not do this in Microsoft Frontpage but in Notepad. Configure the variables then upload. Hope that helps |
|
#10
|
|||
|
|||
|
I can show you this is my edit version of email screen.
-- Setup some variables. -- Modify these to fit your situation: strProductName = SessionVar.Expand("%ProductName%"); strProductVersion = SessionVar.Expand("%ProductVer%"); -- This is the email address that the registrations should be sent to: strEmailTo = "your_email@domain.net"; -- This is the location of the suf7_reg.php file on your server: strURL = "http://www.your_domain.net/ur_reg.php"; -- Assemble details into an email message local strMessage = ""; strMessage = strMessage.."Product: "..strProductName.."\r\n"; strMessage = strMessage.."Product Version: "..strProductVersion.."\r\n"; strMessage = strMessage.."Full Name: "..SessionVar.Expand("%FULL_NAME%").."\r\n"; strMessage = strMessage.."Nick Name: "..SessionVar.Expand("%NICK_NAME%").."\r\n"; strMessage = strMessage.."Country: "..SessionVar.Expand("%COUNTTY%").."\r\n"; strMessage = strMessage.."Email: "..SessionVar.Expand("%EMAIL%").."\r\n"; --We start to add checking fields here if (SessionVar.Expand("%FULL_NAME%") == "") then Dialog.Message("Notice", "The Full Name edit field cannot be empty. Please enter a value.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); Screen.SetFocus(CTRL_EDIT_02); elseif (SessionVar.Expand("%NICK_NAME%") == "") then Dialog.Message("Notice", "The Nick Name edit field cannot be empty. Please enter a value.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); Screen.SetFocus(CTRL_EDIT_03); elseif (SessionVar.Expand("%COUNTTY%") == "") then Dialog.Message("Notice", "The Country edit field cannot be empty. Please enter a value.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); Screen.SetFocus(CTRL_EDIT_04); elseif (SessionVar.Expand("%EMAIL%") == "") then Dialog.Message("Notice", "The E-Mail edit field cannot be empty. Please enter a value.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); Screen.SetFocus(CTRL_EDIT_05); else --End of checking fields local strSubject = "Registration for "..strProductName; local strFrom = SessionVar.Expand("%EMAIL%"); local strTo = strEmailTo; -- Create the table of data to be passed to the PHP script: local tblValues = {MailTo=strTo,MailFrom=strFrom,MailSubject=strSubj ect,MailMessage=strMessage}; local strResult = HTTP.Submit(strURL,tblValues,SUBMITWEB_POST); local nLastError = Application.GetLastError(); if((strResult == "OK") and (nLastError == 0))then Dialog.Message("Status","Registration successful. Thank you."); -- advance to the next screen Screen.Next(); else local nResult = Dialog.Message("Status","Registration failed (#"..nLastError.."). Would you like to try again?",MB_YESNO,MB_ICONQUESTION); if(nResult == IDNO)then -- advance to the next screen Screen.Next(); end end end -- we add a end here for the checking fields I hope that is what you was looking for ![]() Quote:
Last edited by cs200x; 09-19-2005 at 01:15 PM. |
|
#11
|
|||
|
|||
|
After i upload the suf7_reg on my host, i open by IE it show me:
Warning: mail() [function.mail]: SMTP server response: 503 Bad sequence of commands. You must specify the recipients of a message before you can send it in C:\Inetpub\vhosts\ytuongnew.com\subdomains\demo\ht tpdocs\suf7_reg.php on line 12 OK please show me how to fix it. |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Screen: Download File Progress | Brett | Setup Factory 8.0 Examples | 13 | 01-13-2007 10:24 PM |
| Sending Email with Subject, Body and Attachment Filled In | Desmond | AutoPlay Media Studio 5.0 Examples | 0 | 09-24-2003 02:30 PM |
| HOWTO: Make a Media Player Object Go Full Screen | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-23-2002 12:23 PM |
| HOWTO: Install a Screen Saver | Support | Setup Factory 6.0 Knowledge Base | 0 | 09-27-2002 02:35 PM |
| Progress Screen | csd214 | Setup Factory 6.0 | 4 | 02-13-2002 03:00 PM |
All times are GMT -6. The time now is 03:08 AM.









Linear Mode

