|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
#1
|
|||
|
|||
|
hey guys,
i have been searching a while without luck. what i am wanting to do is have a form. in that form will be a drop down menu of locations to register for. i want to click a link to that page and have the drop down on the appropriate spot in the drop down sort of like a target. is there a way to do it. really appreciate all the help this site has given me over the last couple of years brent |
|
#2
|
|||
|
|||
|
does no one know how to do this? possibly a cookie? dont really know. any help would be great
thansk |
|
#3
|
|||
|
|||
|
is this such an unusual request? i didnt think this was that complicated of a problem. i guess i can have different forms for each option to fill in the location i need, but that means like 50 forms to accomplish what i though was a simple problem
|
|
#4
|
|||
|
|||
|
How about using php?
PHP Code:
|
|
#5
|
|||
|
|||
|
i am not sure how to make that work. ok here is a link to the first page where i want people to choose a seminar to attend
www.beinhealth.com/test/fmlftlsched.html now a user will click on the fml or ftl or kids link to register for that seminar. i do not know how to make the form know which one the clicked on thanks for any help you can give |
|
#6
|
|||
|
|||
|
Then what you want to do is something like the following:
On your form, where you have your selection, replace it with: PHP Code:
Now in the page that calls the form, for the links put: <form>.php?type=fml <form>.php?type=ftl <form>.php?type=kids depending on which option you want selected when the form is shown. I've actually been working on something similar. Here is my page: http://www.metadigm.co.uk/partners/websense/index.php If you click on the "get a free quote" in the "resources" section you will notice that next to "Product" it states "Please State". Pretty much a normal form. However if you click on the £ icon under each product you will see that the drop-down automatically selects the correct product. This is all done in the same form using the method above. And here's the code for that select: PHP Code:
Last edited by aka Robbie; 03-30-2007 at 09:38 AM. |
|
#7
|
|||
|
|||
|
Thank you Thank you Thank you
that works great. i have never really learned much php but it looks like i need to. thanks for your help. i like your site btw. brent |
|
#8
|
|||
|
|||
|
I didn't know much php until a few months ago when I started using this site more.
Now here's a big tip for you. From now on, each page save as php and not html. It will make life a life easier when you create links. Why, because you will discover just what php can do for you and you will start using it more and more. It will be a right PITA having to go back and change your links. I use php a lot now with variables. So now depending on where a person has come from depends on what they see on the page. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|