Coniditional execution of the form by php -


i conditionally execute form.

i mean, "if something" code written , executed <form action="aaaa.php">. "else", there <form action="bbb.php">, again executed.

execution and, of course, validation (or rewriting action="") done automatically when user press send button.

is possible php?

would know how make this?

thanks lot

yes. possible. try -

<form action="<?php echo (something) ? 'aaaa.php' : 'bbb.php';?>" > 

check here


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -