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? 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? 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. 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. 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! 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. 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
Archived
This topic is now archived and is closed to further replies.