Solved

Post form results to a file and a custom script

Posted on 2000-03-28
9
181 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

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…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to insert an Iframe into 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 : Open Page or Post…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

630 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