Solved

Post form results to a file and a custom script

Posted on 2000-03-28
9
177 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

773 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