Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Order form/formmail Help

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

GHoD

Graphic DesignerEstablished Member
Impact
3
Hey i need help setting up an order form, when i hit submit it emails me whatever i put in the fields, but it doesnt check it if i leave email box empty ect, and it wont forward to paypal at end.

Will pay if needed.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I assume this is PHP based, so here's my PHP based answer:

You can check if the field is blank or not simply by putting a

Code:
if($_POST['email'] == "") {
die("You have not entered an email.");
}

You can also get a little fancy by using the eregi() function to verify that the inputted email is in the proper email format (*****@***.***). I advise googling the regular expression for email-format matching, as regexp's aren't my strong suit.



It is also possible to use JavaScript to make sure that it is filled out, but this can be problematic if the client has JavaScript disabled in their browser.
 
0
Close
Resolved

I custom coded a php mailer to do exactly what he needed whilst having a little more flexibility.

Dan
 
0
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Parking: your own icon for your portfolio
You can now upload a small icon (a favicon) for your portfolio. Browsers show it in the tab and in bookmarks. It shows on your NamePros...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back