Hi. I am a hard core newbie. Did search forum but could not find a simple answer and info on this question. I just want the user to land on a "thank you" page after submitting an email through built in contact module. Any tips?

Also, one stupid question... those <?php> codes for tweeking themes and modules... does it matter on what line at, say, template.php do you put it? Bare with me, told you, hard core newbie, but i should be able to get it in couple of weeks/months :)

Edited by: VeryMisunderstood; Moved to appropriate forum

Comments

vm’s picture

you will want to look into the actions and triggers modules (in core) and possibly the rules.module (in downloads area)

Blooniverse’s picture

  • The Webform-module http://drupal.org/project/webform, which is quite huge resp. extensive to configure, allows this kind of forwarding/redirection in an easy manner.
  • PHP-codes and lines: As far as I remember, the programming language BASIC used to work in a line-specific way. PHP definitely does NOT! So if you have something like echo 'Hello world'; , then it doesn't matter at all if this code starts on line 10 or 11. BUT ... naturally you SHOULDN'T shift code-snippets/pieces around arbitrarily. So DO NOT take some code from the start and put it somewhere at the end of the file. As long as the whole code remains intact, it shouldn't matter, if PHP/XHTML/CSS starts at line number 1 or 2 or 3. Okay?
dark.o’s picture

thanks a lot mates, I will look it up, definitely!

by the way:
I am on my first site ever, long university studies in economics and marketing means no programing what so over. Sure, drupal involves quite a learning curve for me, but after just 4 days if feels less hopeless, and I'm sure I made the right choice between learning drupal and some other CMS