What to put for form’s “Action”
Posted: 25 November 2008 10:32 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  70
Joined  10-14-2008

I put my forms action as the page it is sent from (ex: index.php/prices to action=“index.php/prices”), yet it sends me to a page that not only doesn’t interpret EE script (the {embed}, etc), but doesn’t use my css as well, and just gives me half of the html in the prices template.

I’m so terribly confused. Has this happened to anyone else?

Profile
 
 
Posted: 26 November 2008 09:37 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  855
Joined  11-08-2004

is it an ee form? just set action to action=”/index.php” method=“post”

use a forward slash before anything so it automatically goes to the root of the site. if you are using ee in a subdirectory it would be something like action=”/subdirectory/index.php”

Don’t put the link further out like you did. you’re just posting to the index page which handles the form

 Signature 

Member: ExpressionEngine Pro Network: ePlaces Network Services

ePlaces Network Services

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120595 Total Logged-in Users: 75
Total Topics: 126636 Total Anonymous Users: 34
Total Replies: 665686 Total Guests: 388
Total Posts: 792322    
Members ( View Memberlist )