This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2006 > Form Question!!!!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Form Question!!!!
skygt

2006-02-07, 10:50 pm

hi could some plz tell me
this thing on a form
you know when you dont accept rules or you dont fill in all obligatory fields??
and you press submit
you get this error page

Well how can i do that for my form on my website!????
thanks in advanced

skygt

twocans

2006-02-07, 10:50 pm

Marge has a great extension for that.

http://www.flevooware.nl/dreamweave...ls.asp?extID=22


you will see it in action when you try and download the extension

regards

kenny






















"skygt" <webforumsuser@macromedia.com> wrote in message
news:drr4ub$j6o$1@forums.macromedia.com...
> hi could some plz tell me
> this thing on a form
> you know when you dont accept rules or you dont fill in all obligatory
> fields??
> and you press submit
> you get this error page
>
> Well how can i do that for my form on my website!????
> thanks in advanced
>
> skygt
>



skygt

2006-02-07, 10:51 pm

Thank you ill read it
skygt

2006-02-07, 10:53 pm

wait i dont get how to activate the fields and all that stuff where is it under??/ forms???? html??? edit??/
or do i click on the form box???
redgards

skygt
twocans

2006-02-07, 10:53 pm





stick the code belw on an html page and test it and then go through the code
and have a read. then apply it to your page.

..

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Guinness drinkers unite</title>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function flvFTFO1(){//v1.11
// Copyright 2003, Marja Ribbers-de Vroed, FlevOOware
(www.flevooware.nl/dreamweaver/)
if (!document.layers){var
v1=arguments,v2=MM_findObj(v1[0]),v3,v4,v5,v6,v7,v8,v9,v10;if (v2){for
(v3=1;v3<v1.length;v3++){v6=v1[v3].split(",");v7=v6[0];v8=v6[1];v10=false;for
(v4=0;v4<v2.length;v4++){v5=v2[v4];if
(v5.id==v7||v5.name==v7){v10=true;break;}}if
(!v10){v5=MM_findObj(v7);v10=(!v5)?false:true;}if (v10){if
(v8=="t"){v5.disabled=!v5.disabled;}else
{v9=(v8=="e")?false:true;v5.disabled=v9;}}}}}}
//-->
</script>
</head>
<body>
<form action="#" method="post" name="theForm"> <!-- # will need to be
replaced for your use -->

<p align="center">
<input name="chkAgree" type="checkbox"
onClick="flvFTFO1('theForm','btnSubmit,t')" value="True"> <!-- this is
the check box -->
I've read the license agreement and agree to its terms.</p>

<input name="btnSubmit" type="submit" disabled="true" value="OK">
<input name="btnCancel" type="button" value="Cancel"
onClick="window.close();"> <!-- these are the buttons -->

</form>
</body>
</html>








"skygt" <webforumsuser@macromedia.com> wrote in message
news:drsesf$8cg$1@forums.macromedia.com...
> wait i dont get how to activate the fields and all that stuff where is it
> under??/ forms???? html??? edit??/
> or do i click on the form box???
> redgards
>
> skygt



skygt

2006-02-07, 10:53 pm

lol ok thank you
ill have a look at it
skygt

2006-02-07, 10:53 pm

what im i supposed to do here :
onClick="window.close();"> <!-- these are the buttons -->
regards skygt
twocans

2006-02-07, 10:53 pm

<input name="btnCancel" type="button" value="Cancel"
onClick="window.close();">



delete that line .

that was in case you had a pop up window with come content for for a user to
agree to, if they didnt then they could click the "cancel" button to close
the window.









"skygt" <webforumsuser@macromedia.com> wrote in message
news:drsl67$ia6$1@forums.macromedia.com...
> what im i supposed to do here :
> onClick="window.close();"> <!-- these are the buttons -->
> regards skygt



skygt

2006-02-07, 10:53 pm

well i press previem in browser and i check the box but the button ok is still off
lol
helP!!!

^_^

skygt
skygt

2006-02-07, 10:53 pm

ohhhhh k thank you!
skygt

2006-02-07, 10:53 pm

sorry but i still dont get what to write here:
onClick="window.close();"> <!-- these are the buttons -->
thanks

skygt
skygt

2006-02-07, 10:53 pm

Ow man plz help guys i deleted that line but still doesnt work when i tick the checkbox i still cant press the submit button!
help!!!
^_^
Plz
Regards

Skygt
Alan

2006-02-07, 10:53 pm

suggestion-

please clarify what you need to do.

Does the form have to submit anything to an email address, or do you just
want to verify that a checkbox is Yes, then forward them to another page.

and- posting a url address of what you have so far, so that typos and such
can be checked.

skygt

2006-02-07, 10:53 pm

ok
i know im sorry for the bad explication
what i mean is i wasnt a form that checks that a check box is checked and checks if all required fields are filed in!
thanks in advanced

Skygt
Alan

2006-02-07, 10:54 pm



> i know im sorry for the bad explication
> what i mean is i wasnt a form that checks that a check box is checked and
> checks if all required fields are filed in!
> thanks in advanced


And the rest of what was asked?

email the form fields then redirect? Or?

What script to process the form and email the results do you have now, if
any?

The JavaScript stuff that's been mentioned will only do client-side
validation- it will not send the form results anywhere.

I'd suggest doing the validation server-side, in the form processing script.
What type of scripting can you use on the server- asp? php? ??

check the host's FAQ/support pages to see if there is a pre-installed
script. If there is one named "formmail-clone" it has validation built into
it.

if no pre-installed script- reply with whether you want PHP or asp, AND give
a link to the uploaded form page.

skygt

2006-02-07, 10:54 pm

ok dude i have no problem receiving the validations
my host has a special thing that send me the validation and everything
but i just want to add a thing so that he can only push accept once he checks
a box

Skygt


Alan

2006-02-07, 10:54 pm

I give up.

> ok dude i have no problem receiving the validations
> my host has a special thing that send me the validation and everything
> but i just want to add a thing so that he can only push accept once he checks
> a box
>
> Skygt
>
>


skygt

2006-02-07, 10:54 pm

AH MAN IM SORRRY !!!!!
IM JUST A BEGINER!!!!:(
:(:(:(:(:(:(:(:(:(
waaa

Alan

2006-02-07, 10:54 pm

suggestions?

Stop the cutesy LOL chat stuff.

Reply with answers to questions that were asked.

currently this is like giving plot suggestions to a room full of monkeys
writing a broadway play.

> AH MAN IM SORRRY !!!!!
> IM JUST A BEGINER!!!!:(
> :(:(:(:(:(:(:(:(:(
> waaa


skygt

2006-02-07, 10:55 pm

Ok i get it
So I guess i will never get my question answered?
Well ill give it one more time

My question:

Hi my name is skygt
And im making my website for my own progs but as you can see while im posting
here its because i have a question.
I would realy apreaciate it if someone could answer my question and be
patient, because im just a beginer.
Heres My question:

I have been making a form for my website when i realised that i needed somehow
that my form checks if the check here box was checked before being able to
click on the Submit Button
And i still havent got it to work
So any help with be apreaciated

Kind Regards

Skygt

bregent

2006-02-07, 10:55 pm

Easy. Get the free yaromat form validation extension. Done.
Gary White

2006-02-07, 10:55 pm

On Thu, 2 Feb 2006 18:45:51 +0000 (UTC), "skygt"
<webforumsuser@macromedia.com> wrote:

> I have been making a form for my website when i realised that i needed somehow
>that my form checks if the check here box was checked before being able to
>click on the Submit Button


Try this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Example</title>
<script type="text/javascript">
function checkTheBox(f){
if(f.elements['checkbox1'].checked)
return true;
alert("You must check the box");
return false;
}
</script>
</head>
<body>
<form name="form1" method="post" action="" onsubmit="return
checkTheBox(this)">
<input type="checkbox" name="checkbox1" value="checkbox"
id="checkbox1">
<label for="checkbox">Check this box</label>
<br>
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>

Gary
skygt

2006-02-07, 10:55 pm

And where from??
Regards

Skygt
skygt

2006-02-07, 10:55 pm

k ty ill check

skygt

2006-02-07, 10:55 pm

still doesnt work =( i even tryed uploading it 2 my host and i tryed not checking the box and trying to submit but i didnt get any error =(
Gary White

2006-02-07, 10:55 pm

On Thu, 2 Feb 2006 19:46:23 +0000 (UTC), "skygt"
<webforumsuser@macromedia.com> wrote:

>still doesnt work =( i even tryed uploading it 2 my host and i tryed
>not checking the box and trying to submit but i didnt get any error =(


Since you replied to your own original post, nobody has any idea what it
was you tried that didn't work. The example I posted does work.

Gary
twocans

2006-02-07, 10:56 pm

my example works fine too perhaps if you gave a link to your page then some
one can see where your going wrong.















"skygt" <webforumsuser@macromedia.com> wrote in message
news:drtnif$78d$1@forums.macromedia.com...
> still doesnt work =( i even tryed uploading it 2 my host and i tryed not
> checking the box and trying to submit but i didnt get any error =(



skygt

2006-02-07, 11:09 pm

ok
heres the link:http://skygt.free.fr/Untitled-1.html
I deleted the line that you told me and modified the action thingy with my hosts one

Regards

Skygt
Alan

2006-02-07, 11:09 pm

curious- what's the purpose of this application?

http://skygt.free.fr/Downloads/skyg...spammer%202.exe





skygt

2006-02-07, 11:09 pm

what do you mean??/
thats the stuff im putting on my website
by the way ur spamming
its got nothing to do with the form
bregent

2006-02-07, 11:09 pm

>what do you mean??/
>thats the stuff im putting on my website


If anyone is interested, that stuff he is distributing is used for Runescape
and BTW, is a violation of their TOS.

>by the way ur spamming


Spamming? I don't think so. Maybe OT, but folks here have a right to know who
they are trying to help.

skygt

2006-02-12, 6:29 pm

............that didnt help me
thank you anyway

Skygt
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews