homepage Welcome to WebmasterWorld Guest from 54.161.155.142
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
Getting a FrontPage form to display a link
How?
ScottM




msg:938035
 2:41 am on Aug 19, 2002 (gmt 0)

I am trying to figure out how to get FrontPage 2002 to display a hyperlink whenever someone fills it out.

The form is appended to an html page so viewers can see it. (Sorta like a guestbook)

The fields are simple enough:

Name
City
E-mail
(dropdown) Lake
Comments

What I want to do is this:
A user fills out the form. When he selects the Lake in the dropdown form field 'Lake', I want the form to post the form results to the page that shows those results.

For Example:
If a user selects "Lake A" from the dropdown, I want the results to be posted to mywebsite.com/lakeA.htm

If a user selects "Lake B" from the dropdown, I wan tthe results to be posted to mywebsite.com/lakeB.htm

I am using FrontPage, so bear this in mind as I have very little experience with any scripting languages.

I would be willing to pay someone to write a code that I can edit...if it's not possible using existing FP forms. Sticky Mail me if you like to talk about that.

 

NeedScripts




msg:938036
 3:32 am on Aug 19, 2002 (gmt 0)

Save the output in a .html file in a public directory and link it :)

ScottM




msg:938037
 3:33 am on Aug 19, 2002 (gmt 0)

I'm not sure that quite answers my question???

please elaborate...

NeedScripts




msg:938038
 3:41 am on Aug 19, 2002 (gmt 0)

Let first confirm that I understand the same thing that you wanting.

A form using frontpage 2002 and you want to give users an ability to see what they posted and what others have posted in the past, right? something like guestbook, right?

Look in the Form Properties, Options, you will find option where you can save *all* the results in a .html file. Just make sure that you specify a public directory and not _private and link that public directory page for users to see.

Hope this helps - if you are still confused, then I will give you detailed info :)

ScottM




msg:938039
 12:33 pm on Aug 19, 2002 (gmt 0)

NeedScripts:

Nope that's not it at all. I already have no problem doing what you are suggesting.

What I want is one form, that posts the data in the forms fields to different pages...depending on the choice in the dropdown.

For Example:
If a user selects "Lake A" from the dropdown, I want the results to be posted to mywebsite.com/lakeA.htm

If a user selects "Lake B" from the dropdown, I want the results to be posted to mywebsite.com/lakeB.htm

brotherhood of LAN




msg:938040
 8:42 pm on Aug 19, 2002 (gmt 0)

Hello again Scott,

I mentioned in that sticky something about Access...holding that thought- 1 question, do you want the results to remain on the page or are they only temporary?

I'm not 100% as to whether its a navigational/choice matter or more of a guestbook

ScottM




msg:938041
 9:25 pm on Aug 19, 2002 (gmt 0)

They would remain on the page.

It's a form for fishing reports for various lakes and rivers.

Each Lake or river has it's own page of reports. And right now I have to create a seperate form for each lake or river I add...it's a pain in the butt.

I would like it to be that ONE form gets filled out, they choose which lake/river page they want it posted to...and it goes there.

An example site is in my profile.

brotherhood of LAN




msg:938042
 9:42 pm on Aug 19, 2002 (gmt 0)

ok cool,

I also use the FP forms (should really look into getting scripts).

You no doubt know you have three options with a FP form, and as I mentioned in sticky, one of the possibilities is a DB. If you can use any sort of database it may be of advantage in future and an easier way to sort what will be an increasing amount of feedback.

Anyway, here is a solution you can do with Frontpage since you say you are used to it, perhaps (almost sure) its not the best way - but a way at least.

Instead of posting the form to the guestbook page, send them to the default file that FP creates when you make a form (the text file).

Create a "confirmation page" with frontpage and make sure on the original form you point the form to this "confirmation page".

On this page, this is where you want the business to be done. The form will post the form variables on to the page. From the same page it can then be determined where it is to be posted to depending on what lake was checked using a scripting language.

It would go something along the lines of "post to ____.htm where the page equals the "lake" form value. On the same page, you can then redirect/post to the according lake page depending on what the user posted and their choice of lake

Basically, its an awkward way of getting variables from a form without mucking up the FP webbots and adding on a script to tell it what where you *really* want the results and viewer to go and the information to be posted to...without all those excess forms.

It is almost impossible to tweak your own code in Frontpage in regards to webbots- so there is no easy solution.....but if you could get the form to point to a confirmation page using FP (not hard), then someone can post the necessary script to be included on the confirmation page.

Hope your following me on this.....I think I can write the code needed in the example....let us know if you can get the FP form to do the above- unless someone has a simpler way...no doubt a non-FP way ;)

/added
Hate to sound long winded, but FP can get in the way of what would be a simple process to someone who has learned their stuff not using the prog

IanTurner




msg:938043
 7:45 pm on Aug 20, 2002 (gmt 0)

Had a thought about this Scott and think you need to use either ASP or javascript to modify the form, either way this means that you can't use Frontpage forms for the job.

(My own thoughts are that Frontpage forms are unreliable and I have moved away from them in the last couple of years.)

I can give you an example of how to manipulate the form in javascript. Sticky me if you need this.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved