Question: Form Action
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:
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?
JeevesBond posted this at 15:20 — 24th December 2007.
He has: 3,956 posts
Joined: Jun 2002
Does submitting a form to default.aspx (on the server) work correctly? Maybe it's the page, not the directory hack, that's not working. Just a thought.
a Padded Cell our articles site!
zimdanen posted this at 16:15 — 24th December 2007.
They have: 4 posts
Joined: Dec 2007
What I had originally works functionally; I've been saving this part until toward the end of the development of this page, and the other stuff is working just fine. I just want to get this sylistic point to work how I want it.
JeevesBond posted this at 21:34 — 25th December 2007.
He has: 3,956 posts
Joined: Jun 2002
Hmmm, this is a difficult one. Unfortunately I've never had occasion to submit a form to a directory instead of a page. You could always submit the form to the index page; then once you've finished processing, redirect the browser to the directory.
a Padded Cell our articles site!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.