kvarnerexpress
Dec 10 2005, 04:45 PM
| | I have an online application Form that multiple groups use from their own webpages. I would like the form to automatically populate a couple fields depending on which group's site it's clicked from......... I think there is a way to populate a form just by adding stuff to the link, but I don't know how and I can't find any information on how online (not really sure what to search)......... anyone know? I want a combo-box and a text field automatically populated with information depending on the link that's clicked.
I honestly don't know if this is an HTML thing or a Javascript thing... if need be I'll go ask on the Javascript forum instead.
Thanks!
|
Reply
Tyssen
Dec 11 2005, 04:39 AM
It sounds like you're talking about using the querystring to pass variables to your form. So your link would be something like link.php?id=X&somevalue=Y&someothervalue=Z. Then you use $_GET or $_REQUEST to access the variables and then print them to your form.
Reply
scab_dog
Dec 11 2005, 05:02 AM
I was searching for something similar...i need some help[ as well..Tyseen i dont get what you mean? The page my form is on a HTML file not a php..and yeah i donjt understand what you mean
Reply
pawitp
Dec 11 2005, 06:02 AM
That's going to be a javascript work, but I reccommend PHP more. Trap17 supports PHP why not use it? It's not that hard to work with PHP, you'll end up using PHP to process the form anyway. So why not using php for the form. Another thing is you said from a "link". Different links can point to different pages can't it, so why combine it to the same page?
Reply
Tyssen
Dec 11 2005, 06:03 AM
You can't achieve this sort of thing without some sort of scripting whether it be PHP, ASP or javascript (not as straightforward in JS anyway I think). Your form will be output to the browser as HTML, but you can use a script to construct that HTML and fill in the values. So, taking the previous example, the link to the form is link.php?id=X&somevalue=Y&someothervalue=Z. Using PHP, you'd do something like this: CODE <?php print '<input type="text" name"field1" id="field1" value="'.$_GET('somevalue').'" /> print '<input type="text" name"field2" id="field2" value="'.$_GET('someothervalue').'" /> ?>
Reply
Lozbo
Dec 13 2005, 01:19 AM
I think what you want is that if you select an option in the very form, like a select, other stuff beneath it will get some info, i have something like that... let me get it: HTML <select name="acompa" id="acompa" onchange="if(acompa.selectedIndex==1)nombre_acompa.disabled=false; else{nombre_acompa.disabled=true; nombre_acompa.selectedIndex=0}"> <option value="0">-----</option> <option value="1">yes</option> <option value="2">no</option> </select>
Where nombre_acompa is the field that you want to block, or unblock. I know that you want to actually populate the fields, not block them or unblock them, but you can use this principle and apply this: document.form.nombre_acompa.value == "text to be set" In the 'onchange' javascript event. This would not be valid xhtml 1.0 strict though. (I think there's no "onchange" attribute =P )
Reply
Similar Topics
Keywords : populating, form, link
- Vb 2008 Linking To Another Form..
(0)
Need Help With My Database [resolved]
retrive data as a link (6) This is the situation: I have a database where you can add bands ( theire albums, genre other
info) For the album part they can add for each album the songs. So what do i want: When i show
the results there only shoul display the bandname which should be a link to the more detailed info
like albums biography etc. How do I do that. Is there a name for this and are there any
tutorials. thx in advance....
Application Form [approved]
(2) PRESENT CREDITS : HOSTING CREDITS : 37.65 Forum Username : Dhruv Display Username: Dhruv Email
Address:dhruvin_patel@hotmail.co.uk My request is for: HOSTING PACKAGE 1 Your Registered Domain
Name or Desired Trap17 Subdomain Name: tutorial-linker.trap17.com Introduce Yourself: Your hobbies,
interests, talents, etc. Let the forum know you better. • My name is Dhruvin. Hobbies: Girls, gaming
and computers. I have no talents I'm just a all rounder can do everything if i like biggrin.gif
.Live in United Kingdom. And am a student. Desired Hosting Account Username: 8....
Dreamweaver Cs3: How To Link Content To Layers/apdivs
(5) Hi all! I've been searching the internet like crazy but just can't find any answers to
my problem. I want to make it so that my navigation buttons links content to be loaded inside a
smaller layer/apDiv or perhaps something i've yet to discover. I just can't for my life
understand how to do this nor what tools and options to use. I am using Dreamweaver CS3 in design
mode and have no clue how to hard code in html, CSS etc.. Here's a picture of what i want to
do. I really hope someone can help me or perhaps atleast point me in the right direction....
Suitable Forum
Link Exhanges (0) I am looking for the suitable forum to post a thread regarding link exchanges. Please reply to
arnett.carroll@gmail.com. Thanks.....
Image Hosting Link On My Website?
need help (2) Please look at the imagefilez.com box at the top part of most of the pages at trap 17. I'm
looking to place any kind of image hosting box similar to that one on my own website. The hosting
service can be any website but I'm just trying to find a way that I can have my own image
hosting box on the site. I don't care if it does the hosting through another site. Please, any
help to create a image hosting box on my website would be greatly appreciated. /tongue.gif"
style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />....
Broken Link!
(4) Just so you guys know, there is a broken link at the top of alot of your pages for computing web
hosting. It goes to a site that doesn't exist. And the graphic for Imagefilez.com is also
broke. Wasn't sure where to post, so here you are!....
Link Between Depression And Learning Disabilities?
Can depression cause learning disabilities? Do learning disabilities (3) I have been diagnosed with clinical depression. I have found at times that it is hard to
concentrate (more often than not). I also have a hard time remembering things. I know that these
are typical symptoms of depression but am wondering if depression itself can be considered a
learning disability due to it's symptoms and side effects. I have done a little of research on
the subject and see many references to people with learning disabilities developing depression
because of having learning disabilities. Does anyone know of a good article, or maybe a website
with....
Gahhh This Isn't Going Well Please Help!
It's a forgot password form in php! (12) CODE <? // database connection details stored here include "database.php"; ?>
<!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head>
<title>Thanks!</title> </head> <body bgcolor="#ffffff"
text="#000000"> <? $email=mysql_real_escape_string($email);
$status = "OK"; $msg=""; //error_reporting(E_ERROR | E_PARSE |
E_CORE_ERROR); if (!stristr($email,"@") OR !stristr(....
Help With Form Actions.
(1) CODE <h1>Login</h1> <form action="" method="post">
<table align="left" border="0" cellspacing="0"
cellpadding="3">
<tr><td>Username:</td><td><input type="text"
name="user" maxlength="30"></td></tr>
<tr><td>Password:</td><td><input type="password"
name="pass" maxlength="30"></td></tr> <tr><td
colspan="2" ....
Registration Form?!
Password Issue??? (6) How can I build the registration form with some additional function which is illustrated by attached
file. When a user tries to type a password, that bar thing says neither it's strong nor weak, or
medium. Just take a look at attachment....
Html Form!
Using MySQL?! (4) Hey, I need your help again! I need some good working tutorial how I can update my SQL through
HTML form. I did use some tutorials online found with the help of google; but they do not work
properly; I mean there are still small mistakes. I need to have a good tutorial to follow. It
should be based on security and more things. It has to be done in proper way.......
How To Make Form Nested In Internet Explorer ?
Nested form in IE (2) I want to make a form nested in another form, it's run on Opera and FireFox but it's occur
error in IE How can I make form f2 submit by using javscript ??? (I want to solve this
problem because my website using Ajax upload....
Free Web Hosting: (legend Link) [screened] [approved]
Free Website: <legionoftwilight.trap17.com> (2) To generate an application for free web hosting please click here: Free Web Hosting
Request Form I would like to request free web hosting from Trap17. Please find my application
below. Your Registered Domain Name or Desired Trap17 Subdomain Name:
legionoftwilight.trap17.com Account Username: aaronz Introduction: I love
computers, video games, astronomy, and web design. Anything having to do with science or technology
basically. Email Address: astronaut707@aol.com Age: 15 Country
Where I ....
Joomla 1.5.2 Broken Link?
Add New User won't work (3) So I wiped the whole slate clean and noticed they've got 1.5.2 now, so I installed it. When I
went to add another admin under the user manager menu, it did nothing when I clicked on "NEW" in the
upper right. This link is broken or something else is wrong here. I need to be able to add other
admins to get this thing off and running... Someone help me please... Admin??? Edit: I've come
to the conclusion that the software that's on the server is bad. Could you, Shree, or someone
over at Xisto please download a new copy of 1.5.2 to replace the one that's the....
Form Not Returning Correct Email Address
(5) I have just noticed another side effect of the recent server migration. On my web site I have a
comment form. After filling in the form the user gets a confirmation email and I get an email to
tell me someone filled in the form, and showing me the data that were filled in. First of all, I
got all emails twice, but I think I managed to fix that in the PHP code. What is worse, though, the
user still gets his/her confirmation and thank you email, but, instead of my email address, the
From: field now gives an aaddress on the server my account is on, ie. the gamma server. D....
Flash Problem
sometimes the buttons will load the wrong link. (9) Its weird but sometimes when you hit the forums or roster button on my flash banner it will load:
www.childrenofconan.trap17.com/index.html instead of what its suppost to. It works fine, but if you
mess around and click the buttons for a little bit you will notice this happening. This is a problem
because people visiting the site will sometimes click the button once and be like oh I guess the
link is broken and never come back, if anyone has a solution to what could be the problem it would
be awesome. This is one of my first custom flash banners and im just confused what....
Text-link-ads
(0) I wanted to know your experience? I just started using the program and so far found it to be a god
send! I am rolling the dough with their affiliate program. I know bloggers like John Chow and
celebrity copy cat John Cow make lots of cash using it hence I tried it out. I would personally say,
so far so good. My campaign of promoting the link worked well. What are your thoughts?....
Link-building Services In 3 Languages
Global Vibration Inc. is now the first SEO agency offering link-buildi (1) Global Vibration Inc. is now the first SEO agency offering link-building services in 3 languages:
English, Spanish and French: http://www.mseo.com/link_building_services.html Our link-building
solutions are offered through temporary staffing services (hire 1 of our technicians for 1 month/160
hours). SEO agencies, advertising agencies and web marketing companies are invited to consider
acting as our reseller and receive a straight 20% commission. After visiting our multilingual
link-building services, you may sign up as a reseller by clicking on the following link: ht....
The Link Building Nightmare…
(3) Don’t you ever wonder how ironic it is that we are drifting towards Web 2.0 and yet it’s becoming
harder to get great links for search engine optimization? Nowadays more and more webmasters are
barring search engines from seeing or following external links. Techniques used include: using a
rel=”nofollow” on external links, forwarding the links through JavaScript, barring pages with
external links in robots.txt, and using 302 (temporary) redirects. Getting links from websites
employing these techniques means that your link won’t count in your search engine o....
A New Free Game Mo Siang Online, Who Know The Link?
who know the link? (4) /ohmy.gif" style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" /> i heard from my
friend is great and free and being close beta, who know the download link?....
Trap17 Link Exchange Script Introduced
(26) Hi, We have introduced a link Exchange Script at Trap17. http://www.addlivelinks.com/ The
categories are yet to be setup. It will be done as we receive link requests. Thanks. -OpaQue....
How To Make A Search Form And Php Code?
Can you help please? (10) I am looking to put a whole Bible on my site, don't worry about copyrights, I already have all
that. It will be put into my site book by book. My problem? I need a form that will only search
the /Bible part of my database. I need an html form, and then a php code that can be put into just
ONE file but that will display a search page afterward. If you could help me out here, I would
greatly appreciate it since I will need this in order for it to work. The goal is simple, have an
html form, that will lead to a search of my entire inneed.mxweb.co.uk/bible database....
How To Use A Link To Call Function In Php?
(8) The title says it all, really. How do you call a function using in PHP? I'm doing a project
and I stumbled upon this problem. I don't want to use query string in the href part like
since that would mess up the other part of my code. Can anyone pleae help me? I've pasted the
code below. /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> Thanksh.
CODE <?php function display($x){ //coding goes here. } ?>
<html> <body> <p align="center"> <a href="what g....
Loop Through Form
How do you do it? (8) In ASP you'd do this: CODE For Each Field in Request.Form So how do you do it in PHP? I
want to loop through a form, check to see if it has a value and if so, append to a string to send as
the body of my email.....
Form To Php Mail. Attachment
(14) i know there are a few topics talk about attachment problem, but i want to know if anyone could show
me a basic code for attaching files like pictures with the message. I made a html form, and
redirect the information to my mail.php file to process the information and send it to my email. I
want to know what do i have to do to attach files like pictures. I tried to search on google, and
the codes are so complicated (i'm an amateur at this). Would it be possilbe if you could show me
the code and explain to me what it does and how i could customize it to fit my needs?....
Table/cell Link?
(10) Well, I actually don't know what it is. But I need a code where you can click everywhere on the
table, not only on the text/image.....
*** Click Here To Get Your Free Hosting ***
Trap17 Free Web Hosting Request Form - FILL OUT THIS FORM (1) Welcome to Trap17 Free Web Hosting. Before you start, read the Trap17 Readme . NOTE:
Trap17 is not like other forums where you can still survive without reading stickies. If you
don't read the Trap17 sticky you will NOT UNDERSTAND how to get hosting. Please take a few
minutes to do that now. Some more info: A NOTE TO NEW MEMBERS (those who haven't yet
participated in our forums) Before you post an application, You must participate in our forum and
collect "Hosting Credits". You earn "Hosting Credits" when you make a post. You should make good
genui....
Free Windowsxp Sp2 Cd From Microsoft
just fill the request form and recive it (12) microsoft offer 100% free windows xp sp2. just go to this link
http://www.microsoft.com/windowsxp/downloa...us/default.mspx and fill your address they will send
you the cd to you. I just recive the cd yesterday. /biggrin.gif' border='0'
style='vertical-align:middle' alt='biggrin.gif' /> I see new feature like directx 9c , WMP9 ,
firewall , and the one I like is popup blocker! /wink.gif' border='0'
style='vertical-align:middle' alt='wink.gif' /> PS. waiting for the cd about 1-2 week if you
write an exact address.....
ZELDA and LINK
(30) Ok here's something that bothers me. There's lots of people that say that zelda and link
have some kind of romantic thing going on. I always imagined link just being her hero and that their
relationship was strictly platonic. I mean, i always saw link as a completely pure person that
doens't really have romantic feelings but only want to save her because it's the valient
thing to do. .. also he's the legendary hero. .. it's in his blood. Someone argued that they
do have a relationship because she kissed him in part two on the cheek when he saved h....
Looking for populating, form, link
|
|
Searching Video's for populating, form, link
|
advertisement
|
|