Re: Double Posts
Hi,
I’m using 1.0 alpha 2 and had the same issue and used this to disable the the button and change it’s label/value after submission.
On the edit form, replace:
<input type=”submit” id=”postformsub” name=”Submit” value=”<?php echo attribute_escape( __(‘Post Message’) ); ?>” tabindex=”4″ />
with
<input type=hidden id=hidden1><input type=”submit” id=”postformsub” onclick=”this.disabled=true;hidden1.name=this.name;hidden1.value=this.value;this.value=’Please Wait…’;this.form.submit();” name=”Submit” value=”<?php echo attribute_escape( __(‘Post Message’) ); ?>” tabindex=”4″>
This creates a hidden form field which the submit buttonvalues are passed to before it’s disabled, as when it’s disbaled it won;t work as a submit button.
I hope that helps.
I similar thing can created on on the edit form.
Bharat