HighDots Forums  

Values and Forms

Websites/HTML pages critique & reviews Discuss and review existing WWW material (alt.html.critique)


Discuss Values and Forms in the Websites/HTML pages critique & reviews forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MaryJo
 
Posts: n/a

Default Values and Forms - 12-29-2003 , 09:40 AM






I need a value returned from a form does anyone know how to do that ???

<input type="hidden" name="DEFN" value="">

I need this value above populated with a value (Company Name - that I click
on) in my form.

Please help

Kind Regards
MJ



Reply With Quote
  #2  
Old   
West
 
Posts: n/a

Default Re: Values and Forms - 12-29-2003 , 10:16 AM







"MaryJo" <riavh (AT) horizon (DOT) co.za> wrote

Quote:
I need a value returned from a form does anyone know how to do that ???

input type="hidden" name="DEFN" value=""

I need this value above populated with a value (Company Name - that I
click
on) in my form.

Please help

Kind Regards
MJ




Forms can be heartache until you get used to them!
....then they are a piece of cake!!
Here is a tutorial I find helpful as a reference point :-
http://www.auburn.edu/~mitrege/knowledge/form-mail.html

Google searches will give others to you

--
S




Reply With Quote
  #3  
Old   
Daniel Ruscoe
 
Posts: n/a

Default Re: Values and Forms - 12-29-2003 , 10:54 AM



In article <bspebd$edcrc$1 (AT) ID-219265 (DOT) news.uni-berlin.de>, MaryJo says...
Quote:
I need a value returned from a form does anyone know how to do that ???

input type="hidden" name="DEFN" value=""

I need this value above populated with a value (Company Name - that I click
on) in my form.
If you were to use PHP:

"company.php"

<?php

if ($company) {

(put form opening stuff here)

print("<input type=\"hidden\" name=\"DEFN\" value=\"$company\">\n");

(put form closing stuff here)

} else {

print("<p>Please choose a company:</p>\n");
print("<p><a href=\"company.php?company=A\">Company A<br/>\n");
print("<a href=\"company.php?company=B\">Company B</p>\n");

}

?>

Something like that.

All you need to do is pass a variable "company" to a PHP script, then
have the variable included in the value of your hidden input.

--
Daniel Ruscoe
http://www.dualstone.co.uk


Reply With Quote
  #4  
Old   
MaryJo
 
Posts: n/a

Default Re: Values and Forms - 12-29-2003 , 01:51 PM



Thank You

"Daniel Ruscoe" <contact (AT) website (DOT) plz> wrote

Quote:
In article <bspebd$edcrc$1 (AT) ID-219265 (DOT) news.uni-berlin.de>, MaryJo says...
I need a value returned from a form does anyone know how to do that ???

input type="hidden" name="DEFN" value=""

I need this value above populated with a value (Company Name - that I
click
on) in my form.

If you were to use PHP:

"company.php"

?php

if ($company) {

(put form opening stuff here)

print("<input type=\"hidden\" name=\"DEFN\" value=\"$company\">\n");

(put form closing stuff here)

} else {

print("<p>Please choose a company:</p>\n");
print("<p><a href=\"company.php?company=A\">Company A<br/>\n");
print("<a href=\"company.php?company=B\">Company B</p>\n");

}

?

Something like that.

All you need to do is pass a variable "company" to a PHP script, then
have the variable included in the value of your hidden input.

--
Daniel Ruscoe
http://www.dualstone.co.uk



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.