homepage Welcome to WebmasterWorld Guest from 54.242.241.20
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Send link value to field
geoffb

5+ Year Member



 
Msg#: 4518823 posted 8:18 pm on Nov 13, 2012 (gmt 0)

Hi,

I have a page that has a list of links on it, these links all go to the same 'next' page that has a form on it. What I need is for the value in (for instance) link 3 to be added as the input in the first field in the form that is on the page the user is sent to.

Thanks to anyone for help.

geoffb

 

whatson

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4518823 posted 8:50 pm on Nov 13, 2012 (gmt 0)

You could alter the next url with an added value, e.g.
next.php?link3
Then $_REQUEST the url from there, make it a variable, and then include the variable in the value of the field.

If you want to make it dynamic however, then you will need to explode the link, and create a variable from there, that will be inserted into the destination url value.

whatson

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4518823 posted 9:26 pm on Nov 13, 2012 (gmt 0)

Was just thinking, that if you didn't want to affect the urls, then you could create them as session variables.

vincevincevince

WebmasterWorld Senior Member vincevincevince us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4518823 posted 1:10 am on Nov 15, 2012 (gmt 0)

Are you trying to do this without modifying the destination pages?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved