# Tabbing on a PHP mail form?

**URL:** <https://forum.kirupa.com/t/tabbing-on-a-php-mail-form/222393>\
**Category:** flash\
**Created:** [April 13, 2007, 12:04am UTC](https://forum.kirupa.com/t/tabbing-on-a-php-mail-form/222393 "2007-04-13T00:04:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flasherkirupa](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@flasherkirupa](https://forum.kirupa.com/u/flasherkirupa)\
**Post date:** [April 13, 2007, 12:04am UTC](https://forum.kirupa.com/t/tabbing-on-a-php-mail-form/222393/1 "2007-04-13T00:04:31Z")

</div>

How to make tabbing work on my mail form?  
When user wants to go from text field to text field,  
what he/she need to do is just simplytab,  
but it doesn’t work automatically on my form -  
do I need a special code for this?

\<?php  
$emailku="user@yahoo.com"; // your email address to send to  
$validResponse=“Thank you for your interest in our company.”; // your response message appeared in flash after sending

$regex="^([a-zA-Z0-9.\_-]+)@([a-zA-Z0-9-])+(.[a-zA-z0-9-]+)+$";  
$email=strtolower($email);  
$subjectEmail = “website mail[$name1]”;

```
$messageTotal = "First Name : $name1
Last Name : $name2

Address : $address
City : $city
State : $state1
Zip : $zip

Email : $email
Phone : $phone

How did you hear about us? : $hear

Additional Comments? : $help

";

mail($emailku,$subjectEmail,$messageTotal,"From:$email

```

Reply-to: $email  
“);  
//add and change email to send copy to another address  
//mail("myother@email.com”,$subjectEmail,$messageTotal,"From:$email  
Reply-to: $email  
");

print “&answer=”.urlencode($validResponse);

?\>
