Reply to Re: help on taking textbox value without using a <form>

Your name:

Reply:


Posted by Jerry Stuckle on 05/17/07 10:58

shotokan99 wrote:
> ah ok sorry for the inconvenience...let me try to explain it clearly.
> usually if we have this:
>
> <form name=".." method="post" action="my.php">
> <input type="Text" name="myname" id="myname" size="30"...> <Br>
> <input type="submit" name".." value="save">
> </form>
>
> and my.php will have:
>
> <?php
> $myname=$_POST['myname'];
> .
> //processing here....
> .
> ?>
>
> now how about if i remove the <form...> tag. then instead of a submit
> button ill replace it with a text linking to my.php. it loots
> something like this:
>
> <input type="Text" name="myname" id="myname" size="30"...> <Br>
> <a href="my.php?name='.$myname.'...>Save</a>
>
> then my.php will look like this:
> <?phpa
> $myname=$_GET['myname'];
> .
> //processing here....
> .
> ?>
>
> my problem is how get the value of the textbox and assign it to
> $myname variable.
> is it possible with php or i need javascript for this matter? i hope i
> was able to explain it clearly
>
>
>
>

Unless the textbox is in a form, it will never be submitted to the
server, so PHP will never see it.

But why not use a form? That's why it's there.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

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