oh yeah rofl.
I assumed it was there

oh yeah rofl.
I assumed it was there
Also, thats is just naming the Submit Button, the variable AUCTION in the code, refers to a variable in the form, youl ahve tto make a hiddne field like isaid to set it once the form is submitted.
and yeah i think the form is sposed to send it back or whats the point in the rest of the code.
Primal
This should be fun..
Forms without an action defined assume the action is the page it's on, which in this case is correct. Un needed, but to conform to W3C standards it's needed. Either way, not the problem.I was assuming that the form goes back on itself. -- so you need the action="nameofpage.php" part in the form header.
This would make sense, as it checks whether variable AUCTION has a value, if it doews then it shows the page (second visit), if not then it shows the form (first visit).
Primal
Forms don't need names. You're defining the ID of a input, in this case the submit button, that's how forms are handled, via the names which are in turn the variables.
If you're referring to me, who the hell is Joe?
Dude that doesn't even make sense.Also, thats is just naming the Submit Button, the variable AUCTION in the code, refers to a variable in the form, youl ahve tto make a hiddne field like isaid to set it once the form is submitted.
and yeah i think the form is sposed to send it back or whats the point in the rest of the code.
Primal
When submitting a form, ALL input's are put as an array in $_POST, labelled by the input name. Why the hell would he need to set a variable himself, when if (!$_POST[auction]) checks if it has or not anyway?
Submit is auction.Ok let me break it down.
The name of the form is unimportant. Basically this part:
action="page.php"
tell the system where to send the variables. (You could have 5 forms on the page all with the same name, its doesnt matter)
Looking at your script it seems that it first look at a variable AUCTION, which if not present loads the form, and if it is present skips the form and does the rest.
This means you need to ahve a hidden field on your form of name AUCTION. So when the form is sent, then the next time the AUCTION variable has been set, and it skips the form this time, and does the rest.
goodLuck, hope it s working now.
Primal
I forgot what else I was gonna say now.
XHTML, CSS, AJAX, JS, php, MySQL.
--
HxF moderators can't read timestamps.
Well played mate! Thanks for that lol.
Never used forms that way before
Last edited by Jackboy; 23-10-2006 at 07:33 AM.
Shouldnt $_POST[auction] be $_POST['auction']?
Last edited by Encrypted!; 23-10-2006 at 07:34 AM.
[IMG]http://www.****************/uploads/d854c54656.gif[/IMG]My Languages - PHP, HTML, Visual Basic, MySQLLearning - SQL, Ajax, XML
Infractions - 0Reputation Comments: 1
It doesn't matter
With the ' '
It just looks a bit neater
XHTML, CSS, AJAX, JS, php, MySQL.
--
HxF moderators can't read timestamps.
Firstly, dont we all want to conform to W3C.
And secondly, making the hidden "auction" field would defenatelly work. And it does make sense ==> make a hidden field call it auction and give it a value. When the form is submitted there will be a value in $_POST['auction'] and it will complete the second part of the code then.
Theres more than one way to skin a cat, neither way is right or wrong.
Primal
Want to hide these adverts? Register an account for free!