By itqn2004 on
<form action="<?php echo $_SERVER['PHP_SELF'];
?>" method="post">
<p align="center"> <select size="1" name="chon">
<option>select</option>
<option value="x">I AGREE</option>
<option value="y">I DISAGREE</option>
</select> <input type="submit" value="Send" name="B1" /></p>
</form>
<?php
if (isset($_POST['chon'])){
if ($_POST['chon'] == 'x'){
drupal_goto('user/register');
}
if($_POST['chon'] == 'y'){
drupal_goto('node/110');
}
}
?>
when i select I AGREE & I DISAGREE then form redirect to file index.php.(homepage).
i don't understand error? please help me
Comments
Can you show your complete
Can you show your complete code of form or module?
Khurram Fraz
You should make form with
You should make form with drupal form APIs with in the module. You have create your own custom module then create form. OR you can create your custom module and alter user registration form with the adding I Agree fields, OR you can you can use profile module Read this http://drupal.org/node/11742
Khurram Fraz
This module will help you
This module will help you http://drupal.org/project/legal
Khurram Fraz
khurramfraz! thank you very
khurramfraz! thank you very much.
http://jobs68.com
Build Drupal website please contact me itqn2004@gmail.com
TanTran