|
Posted by rickycornell@gmail.com on 05/16/07 01:59
On May 15, 9:50 pm, shotokan99 <soft_devj...@yahoo.com> wrote:
> for instance i do have this element but i dont have a <form>:
> <input type="Text" name="myname" id="myname" size="30"...>
>
> then i have this link:
> echo'<a href="mypage.php?name='.$myname.'...>Save</a>';
>
> i want that $myname will the value of myname textbox. something like
> this:
> $myname= <the value of the textbox>
>
> then on the side of mypage.php it will catch the values on same
> manner:
> $myname=$_GET['myname'];
> .
> .
> .
>
> i know this can be easily using <form>...</form>. but if i dont want
> to use a for will it be possible? incase it is, how get the value of
> the textbox and assign it to $myname variable?
I'm a little too tired to figure out exactly what you're looking to
do, but through the fog I think the answer is JavaScript. JavaScript
can read the value of any input field with an ID, and you can use it
to modify the href property of a link you have somewhere, I think. I
know I've used JavaScript, for example, to change the target value of
a form based on one of the form's inputs before sending. Something
along those lines.
Ricky
Navigation:
[Reply to this message]
|