You are here: Re: Help with form and post! « All PHP « IT news, forums, messages
Re: Help with form and post!

Posted by Martin Jay on 05/31/06 20:44

In message <dYmfg.131$oy6.25@fe03.lga>, robert
<ab@no.spam-alama-ding-dong> writes
>"Martin Jay" <martin@spam-free.org.uk> wrote in message
>news:KiiOMoDjXffEFwAK@spam-free.org.uk...
>| In message <447dd9b0$1_3@filemon2.isp.telecable.es>, ivo
>| <nomail@here.com> writes
>| >Hope you can help me :P
>| >
>| >I'm coding an html form with some php vars. Something like this doesn't
>| >work:
>| >
>| > <form action="./correct.php" method="post">
>| > (xxxxx) <input type="hidden" name="preg1" value="'. $preg .'">
>| > <input submit.....>
>| > </form>
>| >
>| >And then in correct.php:
>| >echo $_POST["preg1"]
>| >
>| >But if I substitute the line (xxxxx) with this it works!
>| ><input type="hidden" name="preg1" value="sometexthere">
>| >
>| >What can I do to make it works using $preg var??
>|
>| You need to echo $preg to incorporate its value in the HTML element, for
>| example change:
>|
>| <input type="hidden" name="preg1" value="'. $preg .'">
>|
>| to:
>|
>| <input type="hidden" name="preg1" value="<?php echo $preg; ?>">
>
><op, ignore following line>
>that is of course, assuming the $preg WAS a var and that globals was turned
>on. another winner, wart! you assume too much, have to little information
>yet, love making shots in the dark! i applaude you consistent stupidity!
><ok, here's the problem>

What is your problem? It now appears that you deliberately seek out
articles I post here with the specific aim of flaming and insulting me.

Give it a rest!

In <Ptgfg.548$Z53.67@fe03.lga> and <_zgfg.550$Z53.112@fe03.lga> you
wrote "*PLONK*." To me this indicates you added me to your killfile and
would no longer see any articles I've directly written. And Wikipedia,
which you suggested as a reference, confirms my theory:
<http://en.wikipedia.org/wiki/Plonk>.

Perhaps another MS Outlook Express user will be able to assist you
adding me to your killfile as you've obvious been unable to do it
yourself.
--
Martin Jay
Phone/SMS: +44 7740 191877
Fax: +44 870 915 2124

 

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

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