![]() |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Sounds like you need to change the form action in the file to point to the CMPS page instead of itself.
|
|
#3
|
|||
|
|||
|
tried that also, it still gives the same result
|
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
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
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |