Re: Email Form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My Last post seems to have generated some sort of spam alert, so I'll attach
the file.

"Jacob A. Van Zanen" <jack@vanzanen.com> wrote in message
30FB69E987A8D611B45900104BC18D47259343@PDCQ">news:30FB69E987A8D611B45900104BC18D47259343@PDCQ...
>
> Hi,
>
>
> Combine the two scripts
>
> Begin script
> Accept the post variables
> Insert them into the database
> Mail them
> End script
>
>
> jack
>
>
> -----Original Message-----
> From: Philip O'Rourke [mailto:phil@casu.org.uk]
> Sent: Tuesday, September 16, 2003 10:46 AM
> To: php-db@lists.php.net
> Subject:  Email Form
>
>
> I am new to PHP and need some help with an form mail problem. Basically
> i know how to get a form to submit data to MySQL and I know how email
> the content of a form. But how do i get a form to do both?
>
>
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


begin 666 example.php
M/#]P:' @<F5Q=6ER95]O;F-E*"<N+B]#;VYN96-T:6]N<R]C87-U+G!H<"<I
M.R _/CP_<&AP#0IS97-S:6]N7W-T87)T*"D[#0H-"F9U;F-T:6]N($=E=%-1
M3%9A;'5E4W1R:6YG*"1T:&5686QU92P@)'1H951Y<&4L("1T:&5$969I;F5D
M5F%L=64@/2 B(BP@)'1H94YO=$1E9FEN961686QU92 ]("(B*2 -"GL-"B @
M)'1H959A;'5E(#T@*"%G971?;6%G:6-?<75O=&5S7V=P8R@I*2 _(&%D9'-L
M87-H97,H)'1H959A;'5E*2 Z("1T:&5686QU93L-"@T*("!S=VET8V@@*"1T
M:&54>7!E*2![#0H@(" @8V%S92 B=&5X="(Z#0H@(" @(" D=&AE5F%L=64@
M/2 H)'1H959A;'5E("$]("(B*2 _("(G(B N("1T:&5686QU92 N("(G(B Z
M(").54Q,(CL-"B @(" @(&)R96%K.R @(" -"B @("!C87-E(")L;VYG(CH-
M"B @("!C87-E(")I;G0B.@T*(" @(" @)'1H959A;'5E(#T@*"1T:&5686QU
M92 A/2 B(BD@/R!I;G1V86PH)'1H959A;'5E*2 Z(").54Q,(CL-"B @(" @
M(&)R96%K.PT*(" @(&-A<V4@(F1O=6)L92(Z#0H@(" @(" D=&AE5F%L=64@
M/2 H)'1H959A;'5E("$]("(B*2 _("(G(B N(&1O=6)L979A;"@D=&AE5F%L
M=64I("X@(B<B(#H@(DY53$PB.PT*(" @(" @8G)E86L[#0H@(" @8V%S92 B
M9&%T92(Z#0H@(" @(" D=&AE5F%L=64@/2 H)'1H959A;'5E("$]("(B*2 _
M("(G(B N("1T:&5686QU92 N("(G(B Z(").54Q,(CL-"B @(" @(&)R96%K
M.PT*(" @(&-A<V4@(F1E9FEN960B.@T*(" @(" @)'1H959A;'5E(#T@*"1T
M:&5686QU92 A/2 B(BD@/R D=&AE1&5F:6YE9%9A;'5E(#H@)'1H94YO=$1E
M9FEN961686QU93L-"B @(" @(&)R96%K.PT*("!]#0H@(')E='5R;B D=&AE
M5F%L=64[#0I]#0H-"B1E9&ET1F]R;4%C=&EO;B ]("1(5%107U-%4E9%4E]6
M05)36R=02%!?4T5,1B==.PT*:68@*&ES<V5T*"1(5%107U-%4E9%4E]605)3
M6R=1545265]35%))3D<G72DI('L-"B @)&5D:71&;W)M06-T:6]N("X]("(_
M(B N("1(5%107U-%4E9%4E]605)36R=1545265]35%))3D<G73L-"GT-"@T*
M:68@*"AI<W-E="@D2%144%]03U-47U9!4E-;(DU-7W5P9&%T92)=*2D@)B8@
M*"1(5%107U!/4U1?5D%24ULB34U?=7!D871E(ET@/3T@(F9O<FTQ(BDI('L-
M"B @)'5P9&%T95-13" ]('-P<FEN=&8H(E501$%412!U<V5R<R!3150@=7-E
M<E]N86UE/25S+"!F3F%M93TE<RP@<TYA;64])7,L(&IO8CTE<RP@;W)G/25S
M+"!O<F=?='EP93TE<RP@861D<F5S<STE<RP@<&]S=$-O9&4])7,L('1E;#TE
M<RP@96UA:6P])7,L(&-?;V9?8STE<RP@;F5W<VQE='1E<CTE<RP@87!P5&EM
M93TE<RP@9W)O=7!?:60])7,L('-T871U<STE<RP@9')O=W-S87 ])7,@5TA%
M4D4@:60])7,B+ T*(" @(" @(" @(" @(" @(" @(" @("!'971344Q686QU
M95-T<FEN9R@D2%144%]03U-47U9!4E-;)W5S97)?;F%M92==+" B=&5X="(I
M+ T*(" @(" @(" @(" @(" @(" @(" @("!'971344Q686QU95-T<FEN9R@D
M2%144%]03U-47U9!4E-;)V9.86UE)UTL(")T97AT(BDL#0H@(" @(" @(" @
M(" @(" @(" @(" @($=E=%-13%9A;'5E4W1R:6YG*"1(5%107U!/4U1?5D%2
M4ULG<TYA;64G72P@(G1E>'0B*2P-"B @(" @(" @(" @(" @(" @(" @(" @
M1V5T4U%,5F%L=653=')I;F<H)$A45%!?4$]35%]605)36R=J;V(G72P@(G1E
M>'0B*2P-"B @(" @(" @(" @(" @(" @(" @(" @1V5T4U%,5F%L=653=')I
M;F<H)$A45%!?4$]35%]605)36R=O<F<G72P@(G1E>'0B*2P-"B @(" @(" @
M(" @(" @(" @(" @(" @1V5T4U%,5F%L=653=')I;F<H)$A45%!?4$]35%]6
M05)36R=O<F=?='EP92==+" B=&5X="(I+ T*(" @(" @(" @(" @(" @(" @
M(" @("!'971344Q686QU95-T<FEN9R@D2%144%]03U-47U9!4E-;)V%D9')E
M<W,G72P@(G1E>'0B*2P-"B @(" @(" @(" @(" @(" @(" @(" @1V5T4U%,
M5F%L=653=')I;F<H)$A45%!?4$]35%]605)36R=P;W-T0V]D92==+" B=&5X
M="(I+ T*(" @(" @(" @(" @(" @(" @(" @("!'971344Q686QU95-T<FEN
M9R@D2%144%]03U-47U9!4E-;)W1E;"==+" B=&5X="(I+ T*(" @(" @(" @
M(" @(" @(" @(" @("!'971344Q686QU95-T<FEN9R@D2%144%]03U-47U9!
M4E-;)V5M86EL)UTL(")T97AT(BDL#0H@(" @(" @(" @(" @(" @(" @(" @
M($=E=%-13%9A;'5E4W1R:6YG*&ES<V5T*"1(5%107U!/4U1?5D%24ULG8U]O
M9E]C)UTI(#\@(G1R=64B(#H@(B(L(")D969I;F5D(BPB)UDG(BPB)TXG(BDL
M#0H@(" @(" @(" @(" @(" @(" @(" @($=E=%-13%9A;'5E4W1R:6YG*&ES
M<V5T*"1(5%107U!/4U1?5D%24ULG;F5W<VQE='1E<B==*2 _(")T<G5E(B Z
M("(B+" B9&5F:6YE9"(L(B=9)R(L(B=.)R(I+ T*(" @(" @(" @(" @(" @
M(" @(" @("!'971344Q686QU95-T<FEN9R@D2%144%]03U-47U9!4E-;)V%P
M<%1I;64G72P@(F1A=&4B*2P-"B @(" @(" @(" @(" @(" @(" @(" @1V5T
M4U%,5F%L=653=')I;F<H)$A45%!?4$]35%]605)36R=G<F]U<%]I9"==+" B
M:6YT(BDL#0H@(" @(" @(" @(" @(" @(" @(" @($=E=%-13%9A;'5E4W1R
M:6YG*"1(5%107U!/4U1?5D%24ULG<W1A='5S)UTL(")I;G0B*2P-"B @(" @
M(" @(" @(" @(" @(" @(" @1V5T4U%,5F%L=653=')I;F<H)$A45%!?4$]3
M5%]605)36R=D<F]W<W-A<"==+" B=&5X="(I+ T*(" @(" @(" @(" @(" @
M(" @(" @("!'971344Q686QU95-T<FEN9R@D2%144%]03U-47U9!4E-;)VED
M)UTL(")I;G0B*2D[#0H-"B @;7ES<6Q?<V5L96-T7V1B*"1D871A8F%S95]C
M87-U+" D8V%S=2D[#0H@("1297-U;'0Q(#T@;7ES<6Q?<75E<GDH)'5P9&%T
M95-13"P@)&-A<W4I(&]R(&1I92AM>7-Q;%]E<G)O<B@I*3L-"@T*(" D=7!D
M871E1V]4;R ](")N97=?;65M8F5R+G!H<"([#0H@(&EF("AI<W-E="@D2%14
M4%]315)615)?5D%24ULG455%4EE?4U1224Y')UTI*2![#0H@(" @)'5P9&%T
M94=O5&\@+CT@*'-T<G!O<R@D=7!D871E1V]4;RP@)S\G*2D@/R B)B(@.B B
M/R([#0H@(" @)'5P9&%T94=O5&\@+CT@)$A45%!?4T525D527U9!4E-;)U%5
M15)97U-44DE.1R==.P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,2(@86-T:6]N/2(\/W!H<"!E8VAO("1E9&ET1F]R
M;4%C=&EO;CL@/SXB/@T*(" \=&%B;&4@86QI9VX](F-E;G1E<B(^#0H@(" @
M/'1R('9A;&EG;CTB8F%S96QI;F4B/@T*(" @(" @/'1D(&YO=W)A<"!A;&EG
M;CTB<FEG:'0B/DED.CPO=&0^#0H@(" @(" \=&0^/#]P:' @96-H;R D<F]W
M7W)S57-E<D1E=&%I;'-;)VED)UT[(#\^/"]T9#X-"B @(" \+W1R/@T*(" @
M(#QT<B!V86QI9VX](F)A<V5L:6YE(CX-"B @(" @(#QT9"!N;W=R87 @86QI
M9VX](G)I9VAT(CY5<V5R7VYA;64Z/"]T9#X-"B @(" @(#QT9#X\:6YP=70@
M='EP93TB=&5X="(@;F%M93TB=7-E<E]N86UE(B!V86QU93TB/#]P:' @96-H
M;R D<F]W7W)S57-E<D1E=&%I;'-;)W5S97)?;F%M92==.R _/B(@<VEZ93TB
M,S(B/@T*(" @(" @/"]T9#X-"B @(" \+W1R/@T*(" @(#QT<B!V86QI9VX]
M(F)A<V5L:6YE(CX-"B @(" @(#QT9"!N;W=R87 @86QI9VX](G)I9VAT(CY&
M3F%M93H\+W1D/@T*(" @(" @/'1D/CQI;G!U="!T>7!E/2)T97AT(B!N86UE
M/2)F3F%M92(@=F%L=64](CP_<&AP(&5C:&\@)')O=U]R<U5S97)$971A:6QS
M6R=F3F%M92==.R _/B(@<VEZ93TB,S(B/@T*(" @(" @/"]T9#X-"B @(" \
M+W1R/@T*(" @(#QT<B!V86QI9VX](F)A<V5L:6YE(CX-"B @(" @(#QT9"!N
M;W=R87 @86QI9VX](G)I9VAT(CY33F%M93H\+W1D/@T*(" @(" @/'1D/CQI
M;G!U="!T>7!E/2)T97AT(B!N86UE/2)S3F%M92(@=F%L=64](CP_<&AP(&5C
M:&\@)')O=U]R<U5S97)$971A:6QS6R=S3F%M92==.R _/B(@<VEZ93TB,S(B
M/@T*(" @(" @/"]T9#X-"B @(" \+W1R/@T*(" @(#QT<B!V86QI9VX](F)A
M<V5L:6YE(CX-"B @(" @(#QT9"!N;W=R87 @86QI9VX](G)I9VAT(CY*;V(Z
M/"]T9#X-"B @(" @(#QT9#X\:6YP=70@='EP93TB=&5X="(@;F%M93TB:F]B
M(B!V86QU93TB/#]P:' @96-H;R D<F]W7W)S57-E<D1E=&%I;'-;)VIO8B==
M.R _/B(@<VEZ93TB,S(B/@T*(" @(" @/"]T9#X-"B @(" \+W1R/@T*(" @
M(#QT<B!V86QI9VX](F)A<V5L:6YE(CX-"B @(" @(#QT9"!N;W=R87 @86QI
M9VX](G)I9VAT(CY/<F<Z/"]T9#X-"B @(" @(#QT9#X\:6YP=70@='EP93TB
M=&5X="(@;F%M93TB;W)G(B!V86QU93TB/#]P:' @96-H;R D<F]W7W)S57-E
M<D1E=&%I;'-;)V]R9R==.R _/B(@<VEZ93TB,S(B/@T*(" @(" @/"]T9#X-
M"B @(" \+W1R/@T*(" @(#QT<B!V86QI9VX](F)A<V5L:6YE(CX-"B @(" @
M(#QT9"!N;W=R87 @86QI9VX](G)I9VAT(CY/<F=?='EP93H\+W1D/@T*(" @
M(" @/'1D/CQI;G!U="!T>7!E/2)T97AT(B!N86UE/2)O<F=?='EP92(@=F%L
M=64](CP_<&AP(&5C:&\@)')O=U]R<U5S97)$971A:6QS6R=O<F=?='EP92==
M.R _/B(@<VEZ93TB,S(B/@T*(" @(" @/"]T9#X-"B @(" \+W1R/@T*(" @
M(#QT<B!V86QI9VX](F)A<V5L:6YE(CX-"B @(" @(#QT9"!N;W=R87 @86QI
M9VX](G)I9VAT(B!V86QI9VX](G1O<"(^061D<F5S<SH\+W1D/@T*(" @(" @
M/'1D/@T*(" @(" @(" \=&5X=&%R96$@;F%M93TB861D<F5S<R(@8V]L<STB
M-3 B(')O=W,](C4B/CP_<&AP(&5C:&\@)')O=U]R<U5S97)$971A:6QS6R=A
M9&1R97-S)UT[(#\^/"]T97AT87)E83X-"B @(" @(#PO=&0^#0H@(" @/"]T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*(" \:6YP=70@='EP93TB:&ED9&5N(B!N86UE/2)-35]U<&1A
M=&4B('9A;'5E/2)F;W)M,2(^#0H@(#QI;G!U="!T>7!E/2)H:61D96XB(&YA
M;64](FED(B!V86QU93TB/#]P:' @96-H;R D<F]W7W)S57-E<D1E=&%I;'-;
M)VED)UT[(#\^(CX-"CPO9F]R;3X-"CQP/B9N8G-P.SPO<#X-"CPO8F]D>3X-
M"CPO:'1M;#X-"CP_<&AP#0IM>7-Q;%]F<F5E7W)E<W5L="@D<G-5<V5R1&5T
,86EL<RD[#0H_/@T*
`
end

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux