RE: [PHP] php

From: Date: Mon, 30 Oct 2000 09:24:07 +0000
Subject: RE: [PHP] php
Groups: php.general 
Request: Send a blank email to php-general+get-22633@lists.php.net to get a copy of this message
you can do this instead: (Basically all you need is to redirect the submission to two different pages, right?) I am too lazy right now to write the code for you, but the idea is the following: you name the buttons differently, and then wherever they are being submitted to: if($submit1) { Process the staff in way 1 } elseif($submit2) { Process the staff in some different way.. } I think what you asked was if you can redirect the staff to two separate pages. If so then Yes, you can with header() read about it . It is very usefull. However I like to have it all on the same page and with a simple include(use different files to process the data) Cheers! -----Original Message----- From: Murat SAYGILI [mailto:saygili@altay.com.tr] Sent: Saturday, October 30, 2010 5:07 PM To: php-general@lists.php.net Subject: [PHP] php hello friends, is it possible to write the below code just using php without javascript. <HTML> <HEAD> <TITLE>first</TITLE> <META NAME="description" CONTENT=""> <META NAME="keywords" CONTENT="R"> <script language="JavaScript"> function AksiyonDegis (aksiyon){ document.Formum.action = aksiyon; document.Formum.submit(); }</script> </HEAD> <BODY> <form action="" method="post" name="Formum"> Tar1: <input type="text" name="tar1" size="25" maxlength="30"><br> Tar2: <input type="text" name="tar2" size="25" maxlength="30"><br> <input type="button" value="Ekle" onClick="AksiyonDegis('test1.php3')"> <input type="button" value="Güncelle" onClick="AksiyonDegis('test2.php3')"> <input type="button" value="Sil" onClick="AksiyonDegis('test7.php3')"> <input type="button" value="Bul" onClick="AksiyonDegis('test5.php3')"> <input type="button" value="Bul" onClick="AksiyonDegis('test5.php3')"> </form> </BODY> </HTML> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#22633) next »