Hi,

I would improve my website http://www.privacyinfo.org using input field, to do something like this http://www.whatismyip.com/tools/ip-address-lookup.asp page.

One text field, get his value on submit without store it and use it in the target page with a little bit of PHP.
I browse tutorials, videocasts, google result and I don't understand how to do that with CCK... :(

Could you help ?

Thanks
Sylvain

Comments

Anonymous’s picture

Put this in a page:

<form action="node/x" method="post">
  <input type="text" id="my-textfield" name="my-textfield" />
  <input type="submit">
</form>

and in node/x set the filter to php and enter the following:

print 'And the value is: ' . $_POST['my-textfield'] ;
Sylvain Lasnier’s picture

Indeed, I forgot basic rules vs search of magic modules. ;)
Many thanks