Jump to content

form

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
ecv

ecv

    Newbie

  • Members
  • Pip
  • 1 posts
the user clicks a link and a small window pops up ? they fill it in and it sends to my email address? whats the code for that?

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
You need to use a PHP or ASP form. It might prove difficult to use a pop-up window, though. It would be better to use a separate data entry page, with a Submit button. There are lots of websites available that can teach you PHP or ASP. An example can be found at W3Schools Online Web Tutorials. Have fun!

Oh, and you could JavaScript as well, to pop up messages and check the user entered the correct details. Tutorials available on the same website.

Edited by John, 14 April 2008 - 09:03 AM.

Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
I would use PHP to do this, you could use ASP but I find PHP is easier. w3schools is a very decent site and will get you on a head start with what your looking for.

I don't know about the popup window though, you could probably just javascript but I'm not suire.

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
To load a window, do something like this in the (X)HTML Code:

<input type="button" value="Enter Details" onclick="javascript:window.open('myform.html')" />

The line javascript:window.open() will open a new window, at the press of the button. You pass in the name of the form file. There are extra parameters the open() method can take, which can be looked up on W3Schools Online Web Tutorials.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums