|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
php HELP!!!
Whats wrong with my coding?
I keep getting this error: Parse error: syntax error, unexpected $end.... PHP Code:
HTML Code:
<form method="post" action="hd.php"> <table bgcolor=#fff0c3 align=left> <tr> <td colspan=2><strong class="style6"><i>Request Service in Your Area:</i></strong></td></tr> <tr><td class="style6">Department:</td><td><select name="sendto"> <option value="comments@cometsatx.com">HD Service</option></select></td></tr> <tr><td class="style6"><font color=red>*</font> Name:</td><td><input size=25 name="Name"></td></tr> <tr><td class="style6"><font color=red>*</font> Address:</td><td><input size=25 name="Address"></td></tr> <tr><td class="style6"><font color=red>*</font> City:</td><td><input size=25 name="City"></td></tr> <tr><td class="style6"><font color=red>*</font> State:</td><td><input size=1 name="State"></td></tr> <tr><td class="style6"><font color=red>*</font> Zip:</td><td><input size=4 name="Zip"></td></tr> <tr><td class="style6"><font color=red>*</font> Phone Number:</td><td><input size=25 name="PhoneNumber"></td></tr> <tr><td colspan=2 align=center><input type=submit name="send" value="Submit"></td></tr> <tr><td colspan=2 align=center><small class="style6">A <font color=red>*</font> indicates a field is required</small></td></tr> </table> </form> <br> <p align="right"><img src="images/hdplaceholder.png" width="278" height="202"></p> <p align="justify"> </p> <p align="justify"> </p> <br> <br> <span class="style5"><br> </span> <p align="justify" class="style5"><em>Any further questions can be answered by calling: (210) 332-3302 and ask our Home Delivery Service.</em></p> <p align="justify"> </p></td> <td background="images/index_08.png" width="7" height="46" alt=""></td> <td background="images/index_09.png" width="242" height="46" alt="" valign="top"> Website to view form: http://kkdigitaldesigns.com/cometcle...medelivery.htm |
#3
|
||
|
Steve FTW!
__________________
|
#4
|
||
|
Ok, i've run into a problem, im trying to make the php send an alert box popup when someone fails to enter the required information. Right now it sends you to a new page saying "You have not entered an address, please go back and try againYou have not entered a city, please go back and try again".
Instead of this i want it to pop up with an alert box, or something simular saying they need to enter the required field. Any help? |
#5
|
||
|
#6
|
||
|
If you want an alert box you'd have to do the validation with javascript and/or ajax.
__________________
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Well it's PHP but....What do u think | MadMan TCO | Web design and Programming | 18 | 03-09-2005 08:25 PM |
Php Help!! | navysea| | Web design and Programming | 3 | 03-04-2005 06:27 PM |
PHP-NUKE and PHP | ~BLÃÐE~ | phphq.Net Forums | 9 | 01-19-2005 06:49 AM |
PHP | atholon | Web design and Programming | 16 | 07-21-2004 09:17 AM |
php anyone? | Surge | Web design and Programming | 7 | 07-26-2003 11:04 AM |