Solved

Post form results to a file and a custom script

Posted on 2000-03-28
9
179 Views
Last Modified: 2013-12-24
Using FP 2000, I want to direct the end-user to a page determined by a choice they make in a drop down menu.  FP 2000 allows form results posted to a file OR a custom script.  I need to do both.

Any ideas?
0
Comment
Question by:bbonsall
9 Comments
 

Expert Comment

by:Mandaka
ID: 2673216
bbonsall,


     I need a little clarification...

Are you wanting the visitor to select a destination from a pull down menu, or are you refering to the visitor going to a follow on page dependant on responses from a form input?


Chuck
0
 

Author Comment

by:bbonsall
ID: 2674835
I'm asking them to select their job title from a list.  If they select job title "A", I want them to go to page "B".  If they select any other title, I want them to go to page "C".  Regardless of what title they select, I want the form results saved in a text file.

Thanks for your assistance!  --B
0
 
LVL 1

Expert Comment

by:jwilcox
ID: 2676507
would Perl be an acceptable solution?
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

Author Comment

by:bbonsall
ID: 2679936
Anything that works would be great...I would prefer a solution utilizing FP only, but chiggers can't be boozers!
0
 
LVL 1

Expert Comment

by:RMauch
ID: 2710575
0
 

Author Comment

by:bbonsall
ID: 2711833
Thanks for your help!

I am able to direct the user to a page dependent on their drop down menu choice, what I am unable to do is save the results of the form to a text file.

An example:

The form contains name, phone number, email address and job title.  I want to save this information every time the user hits the submit button.  I then want to direct anyone that says their job title is "Lawyer" to page A and everyone else to page B.

It is critical that the form results get saved to a file, preferrably delimited ASCII.
0
 
LVL 1

Expert Comment

by:astyanax
ID: 2745213
Hi bbonsall, take a look at this page jump depending on what you choose from a drop down menu. Maybe this is what you are looking for. You see a working example at: http://www.smartpeople.de/ drop down at "Themen auswählen" in the top bar.

And here is the important part of the code:

<form method="POST" action="">
<SELECT NAME=menu onchange="window.open (this.options[this.selectedIndex].value,'_top')" size="1">
<option selected>Thema auswählen</option>

<option value="http://www.smartpeople.de/cgi/index.html">CGI's</option>

<option value="http://www.smartpeople.de/whois.html">Domainabfrage</option>
                          <option value="http://www.smartpeople.de/email/index.html">eMail</option>

<option value="http://www.smartpeople.de/email/smartemanager.html">eMail Manager</option>

</select>
</form>

-P.
0
 

Author Comment

by:bbonsall
ID: 2747257
Again, it is critical that the results of the form be posted to a file.  
0
 
LVL 1

Accepted Solution

by:
astyanax earned 200 total points
ID: 2748115
???

Let your user firsthand choose where to go with the above drop down menu and have him then fill out your frontpage form with the option "save to file". Is that not what you want?

If you want to have it all in one form: the data you want to be stored ín your database file and have the user then (depending on his/her choice in one checkbox/drop down optiong box) directed to a specific page in one (big) move, then I have your solution here.

Forget the frontpage webbot in this case. As always they have no configuration options. You have to do it with a cgi script which you have to install on your server. Here is one that can do this all for you: http://bignosebird.com/carchive/bnbform.shtml .

This script has save to server capability and it redirects your user to a page of your liking when the form data has been processed (stored to file).

To be able to redirect the user to different pages depending on the entries in a field your simply change the line in your form from:

<INPUT TYPE="HIDDEN" NAME="ok_url"
VALUE="http://domain.com/test/thanks.html">

for a normal confirmation page to:

<select size="1" name="ok_url">
    <option value="http://www.my-lawyer-page.html">Lawyer</option>
    <option value="http://www.my-carpenter-page.html">Carpenter</option>
  </select>

Need help with setting up the cgi? Tell me.

-P.

0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question