Thanks for your replies
ixalmida;10905487 wrote:Have you tried just a simple <input type="submit" value="submit"> rather than your customized button?
Yes, I have scrapped the above code and made a very simple HTML standard form, using normal fields and a normal button = same result
tried changing case of POST and post in the method for the form and setting an enctype and removing that = same result
the same test code and my code above, works on other boxes
foyer;10905493 wrote:Yeah what is that javascript doing
the javascript, prompts the user to confirm that they wish to submit this form, to put this in context, this is a system for loan laptops, when a machine is returned, someone would visit the site and click the 'returned' image/button > this would update a database saying its been returned
Weedpacket;10905510 wrote:Couple of incidental points:
Why are you putting a bunch of pre-filled hidden fields into the form? If it's solely to pass data from one page to the next, using a [man]session[/man] would be safer.
You do know that there are ways to use images for submit buttons without abusing the image form field type, don't you?
it is to pass the data to the process.php page, this page would the populate a mysql database using the information passed over. the fields are hidden, in the sense, no user input is needed. the php page listing the computers available for loan, finds the user visiting the site and collects their full name from Active Directory. this is to show exactly who clicked the return button
There will be more than on machine listed on the page, which is why i will be using more than one form (with unique form names of course)
As I understand, session information can be used to pass data from page to page, but this would not work in this application, as i have more than one possible item to pass over ??
What did I do wrong on the image submit button ?
Thank you,