vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-31-2007, 10:26 AM
KJ1 KJ1 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 16
Default Custom page (php file) Form submitting to self

How do i get my custom page which includes a form that submits to itself to render correctly? When I first go to the page it renders fine, but when i fill in the form and click submit i get an unstyled unformatted page.

Basically the form should submit to itself and the page should look identical to what it was before the form was submitted.

Any ideas?

Thanks
Reply With Quote
  #2  
Old 03-31-2007, 10:51 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Custom page (php file) Form submitting to self

Sounds like you need to change the form action in the file to point to the CMPS page instead of itself.
Reply With Quote
  #3  
Old 03-31-2007, 02:18 PM
KJ1 KJ1 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 16
Default Re: Custom page (php file) Form submitting to self

tried that also, it still gives the same result
Reply With Quote
  #4  
Old 04-01-2007, 01:34 PM
KJ1 KJ1 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 16
Default Re: Custom page (php file) Form submitting to self

Has anyone tried this before? Surely it must be possible to have a custom page that includes a form which submits to itself. I don't want to have to create a page that submits the form to another custom page.
Reply With Quote
  #5  
Old 04-01-2007, 04:12 PM
KJ1 KJ1 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 16
Default Re: Custom page (php file) Form submitting to self

i managed to fix this... essentially the initial form should be surrounded by a condition which says if the form has not been submitted display the forum. The form should be set to send to itself and the code that handles that submission should be surrounded by a conditional that says if the form has been submitted then process it and display the results.

By surrounding both the initial form display and the form handler section in conditionals the rest of the vbadvanced custom page will display
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with file path on custom php page The Librarian "How Do I..." Questions 4 01-29-2007 01:27 PM
Blank Page after Submitting a link mrderanged Troubleshooting & Problems 11 11-07-2006 01:35 AM
PHP page with FORM tag - need help croupier Troubleshooting & Problems 3 09-08-2005 07:29 AM
Is it possible to include a whole subdirectory/.php file as a custom page? tarzanna Troubleshooting / "How do I..." Questions 1 01-17-2005 12:21 AM
Search form for custom fields like this... pulsetoday "How Do I..." Questions 1 12-16-2004 10:18 AM


All times are GMT -4. The time now is 11:55 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.