Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 3
Name: Kevin
Trades: 0
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
 
 
Register now for full access!
Old 12-24-2007, 08:13 AM Re: Question: Form Action
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
A "post" method needs a physical page name to post to.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
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: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
Why is it that important that the URL changes?
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
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
Trades: 0
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
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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 1.16316 seconds with 12 queries