Html

This is a discussion on Html within the C++ Programming forums, part of the General Programming Boards category; ok this question isnt really about C++ (well it might) but i didnt really know where to ask.. so here ...

  1. #1
    Unregistered
    Guest

    Html

    ok this question isnt really about C++ (well it might) but i didnt really know where to ask.. so here it goes. i have two questions... i have a page desinged with two input entries (like place to type text) and what i want is for when the user press' ok, it either sends the information that they entered in the box to my email address.. or write the information to a text document. can this be done? i know it can.. but i have no clue how. '

    ok second question.. what is the code for disableing the abilitiy to right click and view source on my page?

    thx for everyones help.

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    19
    This should be asked on a web site design forum, there are only a few thousand out there.

    1. If you're server supports PHP 4, you can use this. PHP is based on the C++ lanuguage, so there's a bonus there.

    2. It's impossible. You can make it hard, but anyone with half a brain can get around your "protection".
    Jacob Sheehy

  3. #3
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    Posts
    644
    1. Use a forum type of thing. Kinda like what you do to register to something.

    2. go to www.dynamicdrive.com -> search for no right clicking -> hope to god that if the person that wants your source doesn't use FrontPage to do it(because then they can see your source)

  4. #4
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    put a very small frame in the cornor of your page. Then put an alert tag when you right click in each page. That way, when people press Alt-V C in IE, they will only see the frame's source.

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    12
    Using frames won't stop anyone (I would know )

    I have seen pages before that encrypt the source, and use a Perl or PHP script that decrypts the page at run-time..so when I view source all I see is the encrypted version.. so you may search for something like that

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    To have an emailer, you need some sort of CGI program on your webserver to recive the data from the input boxes, format it and send it via SMTP....

    On my site I created an emailer just like this.........it uses Java and runs from a servlet....it then uses the JavaMail API to send the email to the SMTP server on my site...

    There are loads of ways of doing this, but it depends on the CGI software you have access to (PERL, PHP, Java, ColdFusion......) then you need to have facilities such as a SMTP server to send the mail....

    Therefore your way forward will depend on the resources at your disposal

  7. #7
    Registered User
    Join Date
    Mar 2002
    Posts
    23
    disabling right clicking is not even worth it. You can still click on view->source if your in IE or whatever. You can TRY to block people with frames but again its easy to get around by just finding the link to the main page (putting our mouse over a link will tell you that in the status bar), then putting the url into the address bar and again he can do view->source. Encrypting it helps but again if you can encrypt it, you can decrypt it =)

  8. #8
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    a) Why do you want to protect your HTML source?
    b) You can't, it's downloaded to their computer.. no matter what you try they can open up their temporary internet files and view your files in a text editor.

  9. #9
    Caffienated jinx's Avatar
    Join Date
    Oct 2001
    Posts
    235
    You'll have to use a server-side include (SSI). This can be used in a number of fasions. If you are smart enough to use it, then you're smart enough to figure out how to tweak it to where you'll only load a frame, make it look liked it was called from another frame, thus having your original source pretty secure. The average lamer couldn't get past this, but a dedticated web-dev team or member could with relative ease. Another option is using this Idea at all and thinking up antoher one.
    Weeel, itss aboot tieme wee goo back too Canada, eeehy boyss.

  10. #10
    Unregistered
    Guest
    I've seen some pretty good html obfusciators (frontpage) that make it hard to make sense out of an html document. Or if you really wanted secrecy you could do it all in flash (harder). But why? html is designed to be somewhat open source about things. It is against the spirit of the internet to hide from your users how to make somehting happen on a page.

  11. #11
    Registered User
    Join Date
    Mar 2002
    Posts
    23
    Originally posted by Unregistered
    I've seen some pretty good html obfusciators (frontpage) that make it hard to make sense out of an html document. Or if you really wanted secrecy you could do it all in flash (harder). But why? html is designed to be somewhat open source about things. It is against the spirit of the internet to hide from your users how to make somehting happen on a page.
    .swf files(flash code) can be decompiled...

  12. #12
    Caffienated jinx's Avatar
    Join Date
    Oct 2001
    Posts
    235
    Then use a password and the non-decompile parameter in File-> Publish-> Publish Setings. This is in Flash 5. Besides whom has such important secret documents to protect and not use a pro-service?
    Weeel, itss aboot tieme wee goo back too Canada, eeehy boyss.

  13. #13
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    who, nominative case.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 07:36 PM
  2. Writing an HTML Preprocessor
    By thetinman in forum C++ Programming
    Replies: 1
    Last Post: 09-17-2007, 08:01 AM
  3. Design + HTML
    By orbitz in forum C Programming
    Replies: 8
    Last Post: 11-21-2002, 05:32 AM
  4. Drop-Down Nav menu error - HTML
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 10-05-2002, 09:25 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21