Development email form.....

Discussion in 'Software' started by Haddy, 3 Sep 2002.

  1. Haddy

    Haddy World Domination

    Joined:
    22 Jan 2002
    Posts:
    2,821
    Likes Received:
    0
    ok well i made this and this..............well they both work perfectly but theres 2 things....now when it emails it to my addy.....it says it comes from nobody...now i want that to say whos email it came from in the "from" line.......now that bigger problem is i want to make it where u must fill out everything, cause i keep getting alot of half filled out forms....and its a real pain the in arse......the php files themsleves are attached....if u need more post it up.....thanks for the help....
     

    Attached Files:

  2. linear

    linear Minimodder

    Joined:
    5 Oct 2001
    Posts:
    4,393
    Likes Received:
    1
    Without having looked at the scripts at all....

    'nobody' is the typical userid the web server runs as. Making a mail appear to be 'from' someone is as simple as introducing a "From: foo" header.

    Of course, knowledgeable mail recipients will know that the real sender is the envelope sender, which is and will always be nobody@whatever.host.you.use. That cannot be hidden effectively without invoking a separate setuid process that sends mail.
     
  3. Haddy

    Haddy World Domination

    Joined:
    22 Jan 2002
    Posts:
    2,821
    Likes Received:
    0
    well attached is an example of the from "nobody" emails thats not really the biggest concern i have....i would like however to make it where they must fill in everything.....
     

    Attached Files:

  4. complexprocess

    complexprocess What's a Dremel?

    Joined:
    8 Jul 2002
    Posts:
    353
    Likes Received:
    0
    to make it so they have to fill out everything, i would suggest simple javascript. when they submit, have it check for anything that's missing and pop up a message if anything is found. have it cancel the submission and move the focus to the empty field. if you want i could probably send an example of a simple validation script in this style that i did for a class last year.
     
  5. Haddy

    Haddy World Domination

    Joined:
    22 Jan 2002
    Posts:
    2,821
    Likes Received:
    0
    ah ok....can u attach it to a post or u can email it to me *haddy@alien-host.com*....i would appriciate it
     
  6. JazzXP

    JazzXP Eh! Steve

    Joined:
    30 Apr 2002
    Posts:
    1,669
    Likes Received:
    13
    One thing I learnt at uni is never rely on Javascript... it should be there to make things easier for the client, but you should submit to a page for validation, then email it from there.
     
  7. complexprocess

    complexprocess What's a Dremel?

    Joined:
    8 Jul 2002
    Posts:
    353
    Likes Received:
    0
    it's true that some people do not like to rely on javascript. the only problem i might anticipate is if someone were using linux, freebsd, etc... because freely distributed o.s.es can't distribute the java virtual machine or whatever they call it, because it's licenced. it can be somewhat tricky for a linux beginner to install this for their browser.

    however, because haddy has already used javascript on the page (albeit only for rollover images) i assumed he didn't mind using a little more.

    it's deffinately possible to have an incomplete form return a page stating what is missing and putting the form back up. for convenience to the users (and that is crucial, as you all know) this page should have the form on it again with the already existing data filled in, so there is no chance they have to retype it.

    the non-javascript method probably appears more professional, and although it's more difficult to script, i'd say it is ultimately worth it.

    haddy, if you want i can throw together some psuedo code to help you out with it. i can't really offer to script it for nothing, because that would be a substantial investment in time. if you really wanted, :):cough::free hosting for a low traffic site::cough::) :lol: :) i could script it for you. i'm sure you can do it though, since you put the rest of the site together, i assume.
     
  8. Haddy

    Haddy World Domination

    Joined:
    22 Jan 2002
    Posts:
    2,821
    Likes Received:
    0
    didnt u just email me?

    ur email linkage didnt work.....

    made but out the mod skillz on the board.....

    btw no free host.....im sure i can figure it out =)

    but i did reply to ur mail
     
  9. complexprocess

    complexprocess What's a Dremel?

    Joined:
    8 Jul 2002
    Posts:
    353
    Likes Received:
    0
    that's ok, i'm sure i'll be buying hosting from you anyway. good to support someone in a cool community, and it seems to be a good service at a reasonable price.

    do you still want some psuedocode or a description to put you in the right direction, or do you think you're all set?
     
  10. Haddy

    Haddy World Domination

    Joined:
    22 Jan 2002
    Posts:
    2,821
    Likes Received:
    0
    glad to hear ur still gona go with us.....i hope more bit members follow ur lead...

    as for this i think im pretty set....decided to sit down and recode my whole order system to go along with the new site design i have coming out *ima busy busy man, but not to busy for my clients =)*
     
  11. complexprocess

    complexprocess What's a Dremel?

    Joined:
    8 Jul 2002
    Posts:
    353
    Likes Received:
    0
    i never got your reply. perhaps you recieved the wrong return address. sorry about that.

    and the server my site is on better have a window so you can keep an eye on all the data zooming around for me. :D
     
  12. Haddy

    Haddy World Domination

    Joined:
    22 Jan 2002
    Posts:
    2,821
    Likes Received:
    0
    hmm i dunno....i sent it and it didnt come back....oh well...ill try to get u on aim....
     

Share This Page