I have a form set up in PMWiki. The action sends it to a php script which takes the information and does several different actions. The php script needs to validate the information that comes from the PMWiki page. I know how to do all of that. However, if one of the fields doesn't validate, I want to reload the PMWiki page with all of the information still filled in, but with an error message. My first thought was to post all of the fields back to the starting page, but I can't make that work. I am open to any solution that allows me to continue to work with PMWiki as the base, which means that I can't do the form in a PHP page that is self validating (I've done that for other sites). And I don't want to serve up a separate form outside of PMWiki if it doesn't validate. Ideally, I'd like something like header('Location: mysite.com/MyPMWikiPage'); but that would be a post that could have all the fields sent back. Sorry if this seems so specific, but I know how to work around the problem, I want to learn how to solve this problem directly, unless that is not possible. PMwiki.org recommends server side validation, but I have been unable to find how to post back when it fails.
Post back to calling pmwiki page from PHP script for validation
286 Views Asked by Doug Johnson-Cookloose At
1
There are 1 best solutions below
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in VALIDATION
- Terraform valdiate that one of N variables is set to "true"
- How to validate if Confirm Password is same or not with the Password in React Native using ValidateJS?
- How to create yup schema for dynamic array of different objects
- Quintic Number Number Counting Hash Function
- DropdownButtonFormField doesn't apply custom InputDecoration style
- Is there a way to set a cells value based on the value this cell held at a certain time, even when the cell value changes over time?
- Multiple regex expressions to check mobile number in javascript
- Java Pojos - Setter-Call (Field Touched) Detection
- Input Field Required
- Angular restore ngModel input field to it's previous value
- Bean Validaton : org.springframework.web.bind.MethodArgumentNotValidException
- javax validation not working on spring boot
- How to show warning message for unmatched confirm password
- Flutter TextFormField validation with Firestore
- eval_set in CatBoostRegressor
Related Questions in PMWIKI
- Disable "Backlinks" in pmwiki
- My changes in mystyle.css (vanilla5 skin in pmwiki) doesnt work
- Pmwiki can not acquire lock file
- PMwiki doesn't work anymore after upgrade to CentOS7
- Include directive with page variable doesn't work inside markup
- Multi-line markup in PmWiki
- Get the title of another page in PmWiki
- Why doesn't pmwiki have an ID system like MediaWiki?
- How do I correct a deprecated function?
- change URL format in PMWIKI
- Changing PmWiki user profiles links?
- porting pmwiki-pages to a different server
- PmWiki disable public edit
- pmwiki+ iis+ fastcgi Permissions partially dened
- Load CSS and JS over HTTPS or HTTP in PMWIKI
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Your custom form validation doesn't look very different from what PmWiki does while handling editing submission.
Starting from PmWiki/AvailableActions, you may have a look on how this is designed, and studying recipes code (such as Cookbook/HtpasswdForm), you'll see how others did.