As usual, an insightful response!! :tub:
Create PM is, in most other places, a link called "send new mail" or similar. On the left you have "folders" which are really links to navigate to other groups of mails, and "Create PM" is another link which takes users to a different "form". To me, and on most web-based mail applications, these are simple links because the user is always brought to the same blank send-mail template.
Yes, everyone is taken to the same page which is "send_pm.php"
(you're taking on a lot, if this is to imitate a webmail-like system!)
You said though that you wanted a script to be involved there when users hit Create PM as well as bringing them to a new page. Why? But assuming you do need this, I would still have that button be a separate form, so your image would be a single web page, with two forms and folder links.
<form action="somescript.php" method="get" id="createpm">
<legend>Compose a new message</legend>
<input type="submit" value="Create PM">
I thought I was passing something in the Query String like this...
...but I ended up using a $_SESSION variable on the back-end to pass over the Username so the "To:" field gets auto-populated.
(or, input type="image"... your button looks really Appley
[b]And that is what this all really comes down to...
For this particular page, I like the simple, stream-lined, metallic-looking buttons that HTML gives me "out-of-the-box" when I use a Form.[/b]
Since I don't have or know how to use Photoshop, GIMP, etc. I have a handicap when it comes to simple things like creating and working with Buttons.
By including my "Send PM" button in my larger Form, I got a "free button" thrown in! :lol:
It is indeed totally legal to have a form that just has a submit button, though I believe most places with such buttons still don't use a form... instead their backend has a unique URL and just does special stuff based on that URL. See, the user isn't sending any special information with that button: everyone hitting it should be getting the same result, yes?
Is there any way the form on the right (dealing with messages in the inbox) would affect the result when the user clicks "Create PM"? That's the only way I can imagine that both would have to be in a single form.
No, same experience for everyone.
To sum things up...
You have valid points above, but like I said, for now I like/need the built-in Metallic Button my Form gives me...
After my site is up and running and I've had some time to "walk away" from everything, I will need to re-evaluate the look and feel or my Buttons, and come up with a better, more unified approach.
If I could ever fine time to learn some basic Gimp and Inkscape, that would open a whole new world to me as well?!
I think for now I'll leave thngs as they are, since they work, they look great, and I don't feel like I have made any "Mortal Sins" here, just maybe a slight "Venial Sin"! :angel5: