following line
update-server.php?server=$server_id
it should be like this when u click in address bar
update-server.php?server=12
it must be some number or value and not variable name
urtrivedi
Posting Virtuoso
1,719 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
urtrivedi
Posting Virtuoso
1,719 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
urtrivedi
Posting Virtuoso
1,719 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
document.createElement("div");
DO no create new div, rather use existing
.
.
.
var divTag = document.getElementById("my_div");
// divTag.id = "div";// do change id of your div
.
.
.
//keep rest code as it is
.
.
urtrivedi
Posting Virtuoso
1,719 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
It will always post what ever is on your form. So you must check whether value>0 then add that item is value is 0 or null then ignore that item.
urtrivedi
Posting Virtuoso
1,719 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
That sentence is copied from php manual
urtrivedi
Posting Virtuoso
1,719 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24