Reply
Question: Form Action
Old 12-24-2007, 02:19 AM Question: Form Action
Junior Talker

Posts: 3
Name: Kevin
So.. let's say I am working with the default page of a directory, so when you first load the page, the url looks like this:

http://site.net/directory/

In that default page (let's call it default.aspx), I have a form that posts back to itself:

<form method="post" action="">

When I use the form uploaded onto my webspace (hosting with 1&1), it takes me to:

http://site.net/directory/default.aspx

Now, what I really want is for that default.aspx not to show up at the end of the url. I've been able to get that to work just playing around on my desktop with action="./" and action="../directory/", but neither translate into working on the webspace.

So, long story short, anyone know how to do that?


[P.S. Hi, everybody!]
zimdanen is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 12-24-2007, 08:13 AM Re: Question: Form Action
chrishirst's Avatar
Super Moderator

Posts: 13,644
Location: Blackpool. UK
A "post" method needs a physical page name to post to.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-24-2007, 09:37 AM Re: Question: Form Action
Foundationflash's Avatar
Ultra Talker

Posts: 411
Name: Harry Burt
Location: Colchester, Essex, England
Why is it that important that the URL changes?
__________________
Foundation Flash tutorials : www.foundation-flash.com

New Dreamed Up Web Design: www.dreamedupdesign.com
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Old 12-24-2007, 10:17 AM Re: Question: Form Action
Experienced Talker

Posts: 30
Maybe:
- check if it is posted
- redirect it back to /?dfgd= .....
klaroen is offline
Reply With Quote
View Public Profile
 
Old 12-24-2007, 10:47 AM Re: Question: Form Action
Junior Talker

Posts: 3
Name: Kevin
Quote:
Originally Posted by klaroen View Post
Maybe:
- check if it is posted
- redirect it back to /?dfgd= .....
It posts no problem, and I'd rather show the page name than show a query string.

Quote:
Originally Posted by Foundationflash View Post
Why is it that important that the URL changes?
It isn't. It isn't particularly important at all; it's just a stylistic thing I'd like to achieve.
zimdanen is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Question: Form Action
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12979 seconds with 12 queries