Javascript and hidden fields

  • Digi Stylers
  • Novice
  • Novice
  • User avatar
  • Posts: 19
  • Loc: UK

Post 3+ Months Ago

I'm currently making a contact form for a website. I have a "Department" drop down list. I want it to fill a hidden field with a certain email address depending on what was sleeted. I was going to use PHP to do:

Code: [ Select ]
if($department==$support) { echo("support@thedomain.com"); }


etc. etc. But I've made all my pages with the .html extension and all my links .html so is there a quick piece of JavaScript that can do the job?

Regards,
Mark
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Scorpius
  • Proficient
  • Proficient
  • User avatar
  • Posts: 401
  • Loc: Scorpion Hole

Post 3+ Months Ago

How are you going to be posting this form? Are you going to be using some type of sendmail program? Or what?
  • Managedlinks
  • Proficient
  • Proficient
  • Managedlinks
  • Posts: 294

Post 3+ Months Ago

Hi you are better off using php just think of the spam those email addresses will get being embedded in a html page

take a look at this page for a way to make html pages work like PHP
http://www.managedlinks.com/htaccess.html

its talked about in this topic
http://www.ozzu.com/programming-forum/pages-need-named-php-execute-php-code-t23450.html

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 116 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.