Aravin
Aravin

Reputation: 4108

How to submit a dropdown box value in php without using submit

How to submit a dropdown box value in php without using submit and javascript is that possible or am i wrong.also i dont want to use following way

document.forms["adminorder"].action = "../controller/vieworderprocess.php?name="+combine;
document.forms["adminorder"].submit();

Upvotes: 0

Views: 165

Answers (4)

Arut
Arut

Reputation: 950

Use window.location.href="../controller/vieworderprocess.php?name="+combine";

Upvotes: 1

웃웃웃웃웃
웃웃웃웃웃

Reputation: 11984

You can submit the form using j query form submit() method or java script form submit() method without submit buttons.Or you can use Ajax for sending the necessary values without submit method.

Upvotes: 0

Eleazan
Eleazan

Reputation: 438

Maybe you can use ajax... is javascript, but you can send a value to a server in async mode... without submit the form

Upvotes: 1

Zevi Sternlicht
Zevi Sternlicht

Reputation: 5399

You cant submit a form without either having a submit form or thorough using the submit() function in JavaScript.

Upvotes: 0

Related Questions