Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2008, 08:31 AM
Member
 
Join Date: Feb 2008
Posts: 46
Question Form Action URL for 'View' Page?

Hi,

I am using a HTML input form to get books information. If i give the action URL like "index.php" then it goes to different page. Can anyone tell me what we have to give in the action url.


-Mugesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 05:39 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

the action="" would usually be the same page that you had the form on. but it can be anything. If the app is going to be on the root level, make sure you start your urls with "/"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 05:41 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

if you are trying to go to the indexAction in the IndexController then it should be

PHP Code:
<form action="/" >
blah blah
</form
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 07:58 AM
Member
 
Join Date: Feb 2008
Posts: 46
Smile

Ok thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 08:09 AM
Member
 
Join Date: Feb 2008
Posts: 46
Question Can i give like this ?

If i am doing "Update" option, the current url will be like this.
http://localhost/html/user/edit/id/3.

While giving "update" button, the action url will be "../../../update" and submitted with "update" key. I just added this "../" to remove the curren url keys.Is this correct?. So, finally the url will be like this:
http://localhost/html/user/update/.


-Mugesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-26-2008, 10:11 AM
Member
 
Join Date: Feb 2008
Posts: 46
Question URL Changes Not working Required?

Hi,

I have created some basic files for ZF using html,applications,library folders. Then the url was like this.
http://localhost/html/user/add

And now i just removed the "html" folder and placed all the "html" folder files in the root directory itself. So, If i am trying to access the same like above action url, it is not functioning.
http://localhost/user/useradd/ (without html directory).

But if i use the index.php/controller/actionkey Then its working. How to solve this.
http://localhost/index.php/user/useradd/


Anyone plz tell me one solution.


- Mugesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 02:52 AM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

Quote:
Originally Posted by murugesanme View Post
If i am doing "Update" option, the current url will be like this.
http://localhost/html/user/edit/id/3.

While giving "update" button, the action url will be "../../../update" and submitted with "update" key. I just added this "../" to remove the curren url keys.Is this correct?. So, finally the url will be like this:
http://localhost/html/user/update/.
NO, this is far less complicated than you think.
If you start out your url with '/' you do not need to keep jumping to the parent level. Every URL you use is going to be relative to your bootstrap file (index.php).

http://localhost/html/user/edit/id/3

PHP Code:
<form action="/user/edit/id/3">

</
form
if that is not working, try
PHP Code:
<form action="html/user/edit/id/3">

</
form
But, if you need to be using the second example to get it to work, you have not set your DocumentRoot to http://localhost/html/ which i suggest you do.

Last edited by notrub225 : 02-27-2008 at 02:56 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-27-2008, 02:56 AM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

Quote:
Originally Posted by murugesanme View Post
Hi,

I have created some basic files for ZF using html,applications,library folders. Then the url was like this.
http://localhost/html/user/add

And now i just removed the "html" folder and placed all the "html" folder files in the root directory itself. So, If i am trying to access the same like above action url, it is not functioning.
http://localhost/user/useradd/ (without html directory).

But if i use the index.php/controller/actionkey Then its working. How to solve this.
http://localhost/index.php/user/useradd/


Anyone plz tell me one solution.


- Mugesh.

Do not place the 'html' files on the same level as 'application' and 'library'.

Place them back in the folder 'html', then configure your server to have /html/ be the DocumentRoot.

HOWTO Set Apache Web Site Root Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-24-2008, 02:13 AM
Junior Member
 
Join Date: May 2008
Posts: 11
Default

Give the action to the page you are having the form i guess this would be the correct format.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-05-2008, 05:55 AM
Junior Member
 
Join Date: Jun 2008
Posts: 1
Default Can You Receive Form Results into a File to Go onto your Desktop??

I need to find a way to use the <Form action="--------"> to put something in those tags and when you click submit, the results change into a file and they go to me.

Is there a way to do that? I use Apple iWeb © and I'm pretty sure there is not a way to create a URL into the Action part of the Form. I have already made a form, I just need a way to figure out how to see everyone's results after they click "Submit".

There are a lot of ways I'm sure, but I just want an easy one without using a database, if possible. If it isn't, I'll use one, but I just wanna see the results.

Any suggestions?

-Jelvis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:14 PM.