Solved

Post form results to a file and a custom script

Posted on 2000-03-28
9
180 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
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.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I kill a session when closing a tab without logging off? 18 123
LMS Tracking Survey Result 1 53
Search on a site 5 161
ReadyAPI 1.9.0 2 44
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…
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.
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 Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

734 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