You are here: Re: -> How to read a form variable before posting? <- « PHP Programming Language « IT news, forums, messages
Re: -> How to read a form variable before posting? <-

Posted by Steve JORDI on 05/14/07 13:38

As a complement to my question...

I have a hidden form field called "recid" with id="recid".

By default it's set to "-1" to let me know the form is new
and has not been stored in the database.

I was thinking about adding a javascript event to the field's
onBlur() event like:
getElementById("recid").value = getElementById("number").value

to store the value currently in my field.

Then I could use a reference like

<A href="/formduplicate.php?id=<?=$_GET['recid']?>">...</a>

But I'm afraid that this would not work as the recid variable was not
part of a POST event or passed as an URL argument.

Is this correct?


Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------

 

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

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