FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Trouble with sending e-mail from simple php script
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Trouble with sending e-mail from simple php script [message #176528 is a reply to message #176503] Mon, 09 January 2012 01:46 Go to previous messageGo to previous message
Jeff North is currently offline  Jeff North
Messages: 58
Registered: November 2010
Karma:
Member
On Sun, 8 Jan 2012 10:57:23 -0800 (PST), in comp.lang.php C
<wrong(dot)address(dot)1(at)gmail(dot)com>
<c18fd10b-1e24-4282-9dad-609366911cc3(at)o9g2000yqa(dot)googlegroups(dot)com>
wrote:

[snip]

> | > Apart from the other posters - you are not getting, validating nor
> | > sanitising the input data.
> | >
> | > >| <?php
> | > >| $date = date("F jS Y, h:iA");
> | >
> | > $name = $_POST['name'];
> | > $orgn = $_POST['orgn'] etc etc
> | > //-- now validate and sanitise the data
> | >
> | > // then - if all is well, send out the email
> |
> | I added four lines for those four variables.
> | What does this really do? I already have those values in the
> | variables. Why do we have to do this?

If you are using just $name == '' then how is the value set from the
user's input? To do this you need to get the users input, place it
into your variables, validate and sanitise your data.

Your form uses the method='POST' therefore the data will be sent to
the php file in the $_POST array.

[snip 2 end]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: scoping inside a block
Next Topic: Best PHP Training | PHP Development Training | PHP Training Institute
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 05:40:23 GMT 2024

Total time taken to generate the page: 0.04198 seconds