Eiolon Posted November 22, 2010 Share Posted November 22, 2010 I know with a submit button I can have a new record created when clicking it, but is it possible to do with a text link? Quote Link to comment https://forums.phpfreaks.com/topic/219508-create-a-new-record-text-link-clicked/ Share on other sites More sharing options...
petroz Posted November 22, 2010 Share Posted November 22, 2010 Can you go into greator detail about what your trying to accomplish? Quote Link to comment https://forums.phpfreaks.com/topic/219508-create-a-new-record-text-link-clicked/#findComment-1138115 Share on other sites More sharing options...
BlueSkyIS Posted November 22, 2010 Share Posted November 22, 2010 yes. just process the request as a GET. Quote Link to comment https://forums.phpfreaks.com/topic/219508-create-a-new-record-text-link-clicked/#findComment-1138119 Share on other sites More sharing options...
Eiolon Posted November 22, 2010 Author Share Posted November 22, 2010 I am trying to insert the record when the link is clicked. This way I already have the auto incremented ID. I have to submit a couple of forms, but they are both on the same page. If I had the record ID already generated, I can redirect back to the form ID when the first form is submitted. Quote Link to comment https://forums.phpfreaks.com/topic/219508-create-a-new-record-text-link-clicked/#findComment-1138123 Share on other sites More sharing options...
petroz Posted November 22, 2010 Share Posted November 22, 2010 How about using a little jquery to submit the form. You will never have to leave that page to redirect back to it! Quote Link to comment https://forums.phpfreaks.com/topic/219508-create-a-new-record-text-link-clicked/#findComment-1138124 Share on other sites More sharing options...
Eiolon Posted November 22, 2010 Author Share Posted November 22, 2010 I assume jquery means I have to use javascript? That's not an option in my environment. We have to disable javascript in our browsers at work. Quote Link to comment https://forums.phpfreaks.com/topic/219508-create-a-new-record-text-link-clicked/#findComment-1138138 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.