Solved

Post form results to a file and a custom script

Posted on 2000-03-28
9
175 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
 

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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
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 set up the permalinks on a WordPress Website. 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 : Go t…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now