# Custom If/Else Form

**URL:** <https://forum.kirupa.com/t/custom-if-else-form/238669>\
**Category:** programming\
**Created:** [September 13, 2007, 7:41pm UTC](https://forum.kirupa.com/t/custom-if-else-form/238669 "2007-09-13T19:41:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GiveMeCoffee](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@GiveMeCoffee](https://forum.kirupa.com/u/GiveMeCoffee)\
**Post date:** [September 13, 2007, 7:41pm UTC](https://forum.kirupa.com/t/custom-if-else-form/238669/1 "2007-09-13T19:41:16Z")

</div>

I need a custom php form.

It must send info to an email address as usual - however, if the user does not fill in a particular field such as the telephone number, it goes to a page that says, “are you sure you don’t want to enter your phone number” … and if they do, it keeps the info they already entered and adds the phone number and sends the data. If they don’t want to enter the #, they click continue and it sends the info he/she entered on the previous page.

Any help wouuld be much appreciated.  
Thanks all.
