Overview
TheRequest class provides methods to access HTTP request data in your S-PHP application.
Methods
request()
Retrieves POST request data.Returns the
$_POST array if the request method is POST, otherwise returns null.Usage Example
Example with Form Submission
Notes
- This method only returns data for POST requests
- For GET requests or other HTTP methods, the method returns null
- Always check if the returned value is not null before accessing array keys