Jump to content

filippo

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

filippo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorry, I have other inputs but didn't put them here to make to code not to long
  2. Thanks for your help, unfortunately it doesn't work. I always get Please fill in the form... So, I'm using following html-code: <form action="handler.php" method="post" target="_blank" name"test1"> <table border="0" cellpadding="1" cellspacing="0" width="100%"> <tr> <td width="100%" valign="top"> <p style="margin-top: 0; margin-bottom: 0"> </p> <p style="margin-top: 0; margin-bottom: 0"><IMG src="../img/arrow.gif" width="9" height="7<tr> <select><option name="option" value="1">TEST1</option><option name="option" value="2">TEST2</option><option name="option" value="3">TEST3</option> <option name"option" value="4">TEST4</option> </select> </table> In my php handler.php code I use: <?php if (!empty($_POST['test1'])) { if($_POST['option']==1) { header('Location: http://mysite.com/sage/page1.php'); } else { header('Location: http://mysite.com/sage/page2.php'); } } else { echo 'Please fill in the form'; } ?>
  3. Hello I'm using a form with a dropdown list. When the user select "Test1" in the dropdown then press the button "Submit" it has to send the data to www.test1.com. When the user select "Test2" in the dropdown then press the button "Submit" it has to send the date to www.test2.com. Also the data they've filled in has to come with. I'm working with a datacheck.php, so when the press submit it post to datacheck.php and there I have following code: <?php if(isset($_POST['TEST1']) && $_POST['TEST1']== 'Y'){ header("Location: http://mysite.com/sage/page1.php"); } else { header("Location: http://mysite.com/sage/page2.php"); } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.