You are here: Re: help on taking textbox value without using a <form> « PHP Programming Language « IT news, forums, messages
Re: help on taking textbox value without using a <form>

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация