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. Quote Link to comment 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 } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.