You are here: Re: newbie, how do I put a required field « All PHP « IT news, forums, messages
Re: newbie, how do I put a required field

Posted by Laura25 on 12/05/06 14:14

Thanks, L

Actualy I found this code that work better.

$fieldname = $_POST['fieldname'];
if(empty($fieldname))
{
print("write your message here");
exit();
}



<die.spam@hotmail.com> a ιcrit dans le message de news:
1165184261.302331.229810@l12g2000cwl.googlegroups.com...
>
> Laura25 wrote:
>> Hi,
>>
>> Ref : form (for bank cards information)
>>
>> I wish to put a required field on a form.
>>
>> What should I do on my php and html files ?
>>
>> Also,what is the coding to get the IP address of the sender.
>>
>> And finaly... how can I make may page (https) very secure ?
>>
>> ... please remember that I am a newbie in php...
>>
>> MANY thanks in advance for your help
>>
>> L
>
> if (!empty($fieldname)) {//process form} else {echo "Required field was
> not filled in.";}
>
> ip address is echo $SERVER['REMOTE_ADDR'];
>
> https is encrypted between the server and the end user, read online
> about preventing code injection its a topic that goes too in depth for
> this post.
>
> Flamer.
>

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация