Jump to content

[SOLVED] Or statement witihn an IF


mikebyrne

Recommended Posts

At present my code looks like this

 

if(!empty($_POST['Fname'] )) {
   $Address2 = $_POST['Address2'];
   $Fname=$_POST['Fname'];
   $Sname=$_POST['Sname'];
   $Address1=$_POST['Address1'];
   $Address2=$_POST['Address2'];
   $Address3=$_POST['Address3'];
   $Address4=$_POST['Address4'];
   $Station=$_POST['Station'];
   $Vote=$_POST['Vote'];

 

But I would like to change the first line and put an OR statemet in it

 

ie if(!empty($_POST['Fname'] ) OR if(!empty($_POST['Sname'] ))

 

How would I code this??

Link to comment
https://forums.phpfreaks.com/topic/149828-solved-or-statement-witihn-an-if/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.