Posted by Sylvain Lasnier on July 3, 2009 at 6:29pm
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
Put this in a page: <form
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:
<?phpprint 'And the value is: ' . $_POST['my-textfield'] ;
?>
-----------------------------------------
Joep
CompuBase, Dutch Drupal full service agency
Indeed, I forgot basic rules
Indeed, I forgot basic rules vs search of magic modules. ;)
Many thanks
Sylvain Lasnier