HTML question

Message Bookmarked
Bookmark Removed
How do you do that thing where you make a word of your post into a link?

chap who would dare to contain two ingredients. Tea and bags. (chap), Wednesday, 4 October 2006 13:13 (nineteen years ago)

http://htmldog.com/guides/htmlbeginner/

Sam: Screwed and Chopped (Molly Jones), Wednesday, 4 October 2006 13:16 (nineteen years ago)

the mysterious blue writing!

Euai Kapaui (tracerhand), Wednesday, 4 October 2006 13:17 (nineteen years ago)

<a href="http://www.cranks.com">This will link to cranks dot com</a>

Ste (Fuzzy), Wednesday, 4 October 2006 13:17 (nineteen years ago)

google "html link"

Fluffy Bear, among 100% of the population (Fluffy Bear Hearts Rainbows), Wednesday, 4 October 2006 13:18 (nineteen years ago)

This will link to cranks dot com

like so!

Ste (Fuzzy), Wednesday, 4 October 2006 13:18 (nineteen years ago)

waht is google?

Euai Kapaui (tracerhand), Wednesday, 4 October 2006 13:18 (nineteen years ago)

Ste, are you calling people here cranks?

Sam: Screwed and Chopped (Molly Jones), Wednesday, 4 October 2006 13:20 (nineteen years ago)

shite i didn't know cranks dot com was an actual site.

Ste (Fuzzy), Wednesday, 4 October 2006 13:21 (nineteen years ago)

Got it, thank you.

chap who would dare to contain two ingredients. Tea and bags. (chap), Wednesday, 4 October 2006 13:23 (nineteen years ago)

I'm trying to create a form and send a secure email with the form data. I've looked at these pages:
http://www.w3schools.com/php/php_forms.asp
http://www.w3schools.com/php/php_secure_mail.asp
Am I supposed to copy and paste the php code in the example on the secure mail page directly into my html document and modify the code under "send email" and "if 'email' is not filled out"? Do I need to make any other changes? Do I need to be consistent in how I use single quotes and double quotes in different parts of the code? Do I need to create a mailform.php file? Is it possible to have someone submit a file and send it as an attachment? Is this unsafe? Thanks so much in advance.

youn (youn), Wednesday, 4 October 2006 23:54 (nineteen years ago)

Stare long and hard into the comet's tail my friend
The link shall appear and then throw your castrated form into infinity

Marshall Applewhite (Steve Shasta), Thursday, 5 October 2006 00:04 (nineteen years ago)

bump

youn (youn), Thursday, 5 October 2006 10:44 (nineteen years ago)

> I'm trying to create a form and send a secure email with the form data.

you're asking a lot here, lots of security implications and checking and stuff involved. writing something i'd be comfortable opening up to the world would take a while, possibly forever.

> I've looked at these pages:
> http://www.w3schools.com/php/php_forms.asp
> http://www.w3schools.com/php/php_secure_mail.asp
> Am I supposed to copy and paste the php code in the example on the secure mail page directly into my html document and modify the code under "send email" and "if 'email' is not filled out"?

it would be a start, yes 8)

> Do I need to be consistent in how I use single quotes and double quotes in different parts of the code?

double and single quotes do different things in php. doubles will expand any variables you have in then so echo "$name" will print out the *value of* $name whereas echo '$name' will just get you "$name" printed out. \n (for newline) doesn't work in single quotes either.

> Do I need to create a mailform.php file?

what is mailform.php? oh, i see. mailform.php is the name of the file containing the code in the example, it calls itself - it'll print the form if nothing is entered (ie first time through and if user leaves boxes empty) otherwise it'll do the send_email actions.

oh, don't expect php mail() function to just work - it relies on a bunch of stuff being in place on your server, probably stuff you have little control over unless you are server admin.

> Is it possible to have someone submit a file and send it as an attachment?

it is. http://www.tizag.com/phpT/fileupload.php

> Is this unsafe?

yes. are you sure you want anybody in the world to be able to send you random files from your web page?

andy

Koogy Yonderboy (koogs), Thursday, 5 October 2006 11:53 (nineteen years ago)

oh, i signed that like it was an email. how quaint...

Koogy Yonderboy (koogs), Thursday, 5 October 2006 11:54 (nineteen years ago)

aw, that's kinda heartwarming.

teh_kit (g-kit), Thursday, 5 October 2006 11:55 (nineteen years ago)

Thanks, Andy! By the time I checked this thread at lunch, I'd figured out that that the code was calling itself (but I was momentarily distracted by another command for doing this which I still haven't really figured out - why? when?), but I was stuck on trying to fit the things I wanted in the email message, so the explanation of quotes really helped. Through trial and error, I figured out that the server admins have installed what's needed for mail(). I'm putting off file uploads until I can figure out how to add the generic university-wide authentication to the page.

youn (youn), Thursday, 5 October 2006 23:52 (nineteen years ago)

dude, google this shit. don't ask ilx. seriously. people are too mean here.

Sam: Screwed and Chopped (Molly Jones), Friday, 6 October 2006 02:51 (nineteen years ago)


You must be logged in to post. Please either login here, or if you are not registered, you may register here.