mjahkoh Posted September 2, 2011 Share Posted September 2, 2011 I have this link "https://localhost/what/index.php?album=parent%2Fsubalbum&image=1coffee.jpg" Am trying to insert a variable(eid=86) so that it comes before all other variables to read thus "https://localhost/what/index.php?eid=86&album=parent%2Fsubalbum&image=1coffee.jpg" Regards Link to comment https://forums.phpfreaks.com/topic/246277-insert-a-variable-in-a-url-link/ Share on other sites More sharing options...
AyKay47 Posted September 2, 2011 Share Posted September 2, 2011 what is the issue here..? Why not write it how you have it written? Link to comment https://forums.phpfreaks.com/topic/246277-insert-a-variable-in-a-url-link/#findComment-1264720 Share on other sites More sharing options...
wright67uk Posted September 4, 2011 Share Posted September 4, 2011 I pressume the url is made from using post within a form? Can you not just post eid before posting anything else? Link to comment https://forums.phpfreaks.com/topic/246277-insert-a-variable-in-a-url-link/#findComment-1265283 Share on other sites More sharing options...
codefossa Posted September 4, 2011 Share Posted September 4, 2011 <input type="hidden" value="<?php echo $var; ?>" /> // Rest of Form If you put the var first in form, it will appear first in the URL. Link to comment https://forums.phpfreaks.com/topic/246277-insert-a-variable-in-a-url-link/#findComment-1265312 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.