HIV Posted March 18, 2007 Share Posted March 18, 2007 How to make two submits in one form? For example where is text input, and two selections to different pages. Link to comment https://forums.phpfreaks.com/topic/43278-how-to-make/ Share on other sites More sharing options...
cmgmyr Posted March 18, 2007 Share Posted March 18, 2007 You can do something like: <input type="submit" name="submit" value="Edit Profile" /> <input type="submit" name="submit" value="Preview Profile" /> to: if($_POST['submit'] == 'Edit Profile'){ //edit profile }else{ //preview profile } Link to comment https://forums.phpfreaks.com/topic/43278-how-to-make/#findComment-210139 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.