Capture Values/Properties

This is a discussion on "Capture Values/Properties" within the Web Page Design section. This forum, and the thread "Capture Values/Properties are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 4th, 2006, 17:34
Junior Member
Join Date: May 2006
Location: A Place Far Away
Age: 26
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Capture Values/Properties

From my HTML Form how can I capture values or properties to use in functions?

Say I have this :
Code: Select all
    &nbsp;<input id="Accept" name="MyAction" type="radio" value=" Accept" style="width: 64px" checked="CHECKED"/>
    Accept<br />
    &nbsp;<input id="Decline" name="MyAction" type="radio" value=" Decline" style="width: 64px"/>
    Decline<br />
    <br />
    Comments :<br />
    <input id="txtcomments" name="Comments" style="width: 320px; height: 152px" type="text" /><br />
    <br />
    <br />
    <input id="Submit1" style="width: 112px; height: 40px" type="submit" value="submit" onclick="return Submit1_onclick()" /><br />
    &nbsp;<br />
    <br />
On Submit how can I get a alert to come up with value of whichever radio button I clicked?
Reply With Quote

  #2 (permalink)  
Old Dec 4th, 2006, 22:25
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Capture Values/Properties

Hey mate i am trying to accomplish kind of the same thing but it cant be done in HTML the form can but the submit button will have to be coded with phpo so when i have sorted it out i will beable to reply and help you as much as i can

Thanx
Aaron (Moderator)
Reply With Quote
  #3 (permalink)  
Old Dec 5th, 2006, 18:53
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Capture Values/Properties

Ask this question the the JavaScript forum if you need an alert. If you need validation or a foolproof method, you'll need PHP.
Reply With Quote
  #4 (permalink)  
Old Dec 6th, 2006, 14:25
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Capture Values/Properties

I would go for the PHP method myself, much easier to write...lol
Reply With Quote
  #5 (permalink)  
Old Dec 6th, 2006, 16:16
Junior Member
Join Date: May 2006
Location: A Place Far Away
Age: 26
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Capture Values/Properties

How can I do this with php?
I have seen some code snippets of javascript but I'm not understanding how it works.

Why can't I just do something like this :
Code: Select all
function checkthisout(MyField)
{
    alert(MyField.Name & " " & MyField.Value) 
}

//HTML stuff
<form>
Type Here:
<input type="text" name="test1">
<input type="submit" onclick="return checkthisout(test1)">
</form>
Reply With Quote
Reply

Tags
assign, capture, properties, values

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript to capture event for restore down or maximize jadeite100 JavaScript Forum 0 May 30th, 2007 20:21
How to capture the event when a popup window box is resize jadeite100 JavaScript Forum 1 May 30th, 2007 00:38
Setting Form Values to Previously Entered Values masonbarge PHP Forum 6 Oct 17th, 2006 17:36
Information capture page Help neel Web Page Design 3 Jul 21st, 2006 10:43
Assign string values to integer values of a session variable Andy K Classic ASP 1 Jul 13th, 2005 08:29


All times are GMT. The time now is 02:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43