|
okay:
my question is how to get a value from a textbox and send it with the post.
in this case:
i have two forms
form one contains the textbox
form two contains the submit
when i click on the submit i want to send with the post of the form two the values in form one? how?
Militiaware
Faris Madi
|
|
|
|
|
Why do you write your post in bold? Bold text is used to emphasize words in a text, if you emphasize the entire text, it's just annoying. Almost like SCREAMING.
Why do you have two forms in the first place?
Put hidden fields in the second form, and copy the values from the first form into the hidden fields.
---
b { font-weight: normal; }
|
|
|
|
|
i've 2 day in programming web application.....
how can i copy the values from the form1 to the form2
<form1><input type=hidden name=H1 value=111 ...etc <---------
<form2><imput type=hidden name=H1 ...etc <---------
in other words the value if H1 = 111???
Militiaware
Faris Madi
-- modified at 5:57 Tuesday 7th February, 2006
|
|
|
|
|
Why do you have two forms in the first place?
To copy the values you use javascript code like this:
document.form2.H1.value = document.form1.H1.value;
---
b { font-weight: normal; }
|
|
|
|
|
What "REFRESH" do to the web page. Does "REFRESH" download the page again? by call it again or there's another story behind it?
Militiaware
Faris Madi
|
|
|
|
|
Please remove the marquee effect if you want to be taken seriously!
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
The refresh button in most browsers will load the page from the cache if appropriate (hasn't expired, no query string, etc.), but there is usually a means of forcing everything (page, images, etc.) to be downloaded again (Ctrl+F5 in IE and FF). window.location.reload(true); will also accomplish this sort of cache flushing.
|
|
|
|
|
I read so many....... articles about ajax. It looks that the writers know what they are talking about.
BUT what is the simple way to update db with some data I got from my form.
And please don't refer me to an article where someone created a monstrous library that can sumbit a rocket to the moon...
|
|
|
|
|
Ajax or not Ajax, updating the database is still the same.
The only difference is using Ajax you can send data back to the server without posting the form.
There are plenty of examples in CodeProject itself on Ajax (check your navigation menu on the left for AJAX).
If you're interested, Anthem.Net is a very good .Net AJAX library you can use right away without needing to understand all the complexity*.
*Disclaimer: Brain required
Edbert
Sydney, Australia
"A day without sunshine is like, you know, night."
|
|
|
|
|
Dear All,
I have saved my username and password using PHP in Mysql Server. I have used PASSWORD('password').But for user verification how I will check user password from Mysql server using PHP.Because PASSWORD() one way process.
What things I have to do?
Pl anybody in help ? Any hints.
rpkumar
|
|
|
|
|
SELECT PASSWORD('mypass')
will give the the value of the encripted password 'mypass' simply check the returned value from this against the value in the password field.
I have not tested this, I assume it will wortk.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
|
|
|
|
|
Well As I think, He should do as:
select password from table_name where userName = 'passedUserName'
Now,in while loop $pass = $result['password'];
if($pass == PASSWORD(myPass))
return true;
else
return false;
--------------------------------------------------------------------------------------------------
Hiral Shah
India
If you think that my answer is good enough and can be helpful for other then don't forget to vote.
|
|
|
|
|
hi, how can i attched a text or image file with the email. if any body knows then plz send me the code.
Regards,
Deepak More
Software Developer
Mumbai
|
|
|
|
|
I need a php code OR ASP which sends the
subject,body and attachment of email
to the local intranet configured lotus notes 6.
vivek
-- modified at 4:55 Monday 6th February, 2006
|
|
|
|
|
how to redirect from this page to another page using PHP language??
Militiaware
Faris Madi
|
|
|
|
|
See http://uk.php.net/header
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
|
|
|
|
|
$URL="http://www.example.com";
header ("Location: $URL");
|
|
|
|
|
you can redirect to the same php with different action case too.
like just pass action in the php link and then write:
header("Location: phpFile?action=newaction");
--------------------------------------------------------------------------------------------------
Hiral Shah
India
If you think that my question is good enough and can be helpful for other then don't forget to vote.
|
|
|
|
|
take a look at this code ...
<div style="height:100%;">
<div style="height:20px;"></div>
<div style="height:100%;"></div>
<div style="height:20px;"></div>
</div>
basically i want it so that the top and bottom inner divs always stay 20px in height, and the inner div fills in the rest of the left-over space of the outter div ... but i don't want the outter div becoming taller than the page itself ... any help?
~ Munky
|
|
|
|
|
I believe you can use the css float property to do this.
Try the following steps:
1. Float the first inner div to the top, and specify height: 20px
2. Specify height of second inner div as 100% (I'm not sure whether this works in FireFox though)
3. Float the third inner div to the bottom, and specify height: 20px
That should allow the middle (second) div to fill in the page.
Edbert
Sydney, Australia
"A day without sunshine is like, you know, night."
|
|
|
|
|
Maybe you can try this?
In your CSS document create a class like so:
.Top
{
position:absolute;
top:0px;
width:100%;
max-height:100%;
overflow:hidden;
}
and then create a bottom part like this:
.Bottom
{
position:absolute;
bottom:0px;
width:100%;
max-height:100%;
overflow:hidden;
}
Now, when you define the classes in div it would look something like this:
and bottom:
everything between top and bottom will scroll under the top and bottom classes.
hope it helps!!
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
I have noticed in Netscape and Opera that web sites can display an icon in the address bar just before http:// as this site does.
I am interested in doing this for my web site but have no idea what is involved.
Can anyone help?
old, but still trying new things!
|
|
|
|
|
|
Thank you so much for the prompt response!! I will try out the suggestion on the link you gave me.
I did search the site for this topic but perhaps worded it wrongly.
Again, Thanks.
Never too old to learn!
|
|
|
|
|
I followed the instructions and now have my icon appearing in Netscape and Firefox.
It does NOT work with IE 6.01 SP 1
I am currently using IE and the Codeproject icon does not appear either.
This would appear to be consistent with Microsoft wanting to over-ride anything that interferes with their logo and also attempting to take over all types of MEDIA using their own products.
Les
|
|
|
|