journeyman73 Posted June 17, 2010 Share Posted June 17, 2010 Hi i have a page that passes an url string of http://www.blah.co.uk/admin/list_links.php?upload_message=image%20uploaded&upload_message_type=success&show_image=FLSGAL23860_home.jpg when my image is uploaded. But i also have another form on this page that does not require the string, but when i submit this form the url string remains. Is there a way of clearing the string and just having http://www.torbaypoetryfestival.co.uk/admin/list_links.php when the form is submitted? I have included the code for the page. Cheers Kev [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/205060-clearing-a-url-string/ Share on other sites More sharing options...
TOA Posted June 17, 2010 Share Posted June 17, 2010 Are you using get or post? *EDIT* (Thought: "get" most likely if your passing a variable in the url. Duh DA) Link to comment https://forums.phpfreaks.com/topic/205060-clearing-a-url-string/#findComment-1073431 Share on other sites More sharing options...
journeyman73 Posted June 17, 2010 Author Share Posted June 17, 2010 It's post, i have attached a screen shot of the page so you can see the page and also the two includes that deal with the new bit and the list bit Cheers Kev [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/205060-clearing-a-url-string/#findComment-1073441 Share on other sites More sharing options...
TOA Posted June 17, 2010 Share Posted June 17, 2010 As far as I know, there's no way to "clear" a post value, but you could add a processing page in between the two pages (if that makes sense) to act as a "middle-man". Others here might have a different knowledge base though. Link to comment https://forums.phpfreaks.com/topic/205060-clearing-a-url-string/#findComment-1073444 Share on other sites More sharing options...
journeyman73 Posted June 17, 2010 Author Share Posted June 17, 2010 how do i clear it for get? Cheers Link to comment https://forums.phpfreaks.com/topic/205060-clearing-a-url-string/#findComment-1073462 Share on other sites More sharing options...
TOA Posted June 17, 2010 Share Posted June 17, 2010 how do i clear it for get? Cheers GET and POST are just methods of sending/recieving info, so once the info is there, there's no way to get rid of it short of redirecting to a new page (hence the suggestion for a processing page in the middle.) At least that's my understanding. Can anyone else shed some light on this? Link to comment https://forums.phpfreaks.com/topic/205060-clearing-a-url-string/#findComment-1073487 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.