I have a form something like this:
#!text/html
<form action="<?php echo fURL::getDomain() . fURL::getWithQueryString(); ?>"
enctype="multipart/form-data" method="post" >
<!-- I have additional fields here -->
<div class="form_row">
<label for="image_1">Image 1:</label>
<input type="file" id="image_1" name="listing_image[]" />
<label for="image_2">Image 2:</label>
<input type="file" id="image_2" name="listing_image[]" />
<label for="image_3">Image 3:</label>
<input type="file" id="image_3" name="listing_image[]" />
<span class="hint">
You can upload JPEG, GIF, or PNG files up to 500 KB.
</span>
</div>
<div class="form_row_last">
<input type="submit" value="Save Listing" />
<input type="hidden" name="token" value="<?php echo fRequest::generateCSRFToken() ?>" />
</div>
</form>
In the page I use to process the post I have something like:
if ($action == 'edit') {
try {
//other code here
echo('This is fired!');
if (fRequest::isPost()) {
echo('But not this!');
);
} catch (fException $e {
//etc...etc...
}
}
I'm also passing variables in the querystring. My server's access log records the access as a POST but the code inside the isPost is not executed. Could the querystring be causing a conflict? Any Ideas?
Thanks, Carlos