|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
Hello, Im working on a site(GoldWriters Home) I need a mailing form for the ordering page(www.goldwriters.info/order.php).
The problem is that my mail form file isnt working. I have it included in order.php but doesnt work, i need someone to help me fix the code or find the error. HTML SCRIPT: HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <body> PHP SCRIPT: PHP Code:
HTML SCRIPT: HTML Code:
<center> <table border="0" cellpadding="0" cellspacing="0"> <form method="post"> <tr> <td> <font size="2" face="Verdana"><b>Name<font color="#FF0000">*</font>:</b></font> </td> <td width="182"> <input type="text" name="name" value="" size="30" maxlength="40"> </td> </tr> <tr> <td> <font size="2" face="Verdana"><b>E-Mail Address<font color="#FF0000">*</font>:</b></font> </td> <td> <input type="text" name="email" value="" size="30" maxlength="50"> </td> </tr> <tr> <td> <font size="2" face="Verdana"><b>Plan<font color="#FF0000">*</font>:</b></font> <br /> If you dont know what to put, <a href="plans.php">Check here</a> </td> <td> <input type="text" name="plan" value="" size="30" maxlength="40"> </td> </tr> <tr> <td colspan="2"> <font size="2" face="Verdana"><b>Extra Info<font color="#FF0000">*</font>:</b></font> <br />Plase include your site link, instructions, etc. </td> </tr> <tr> <td colspan="2"> <textarea rows="10" cols="50" name="message" maxlength="500"></textarea> </td> </tr> <tr> <td colspan="2"> <input type="reset" value="Reset"> <input type="submit" name="submit" value="Send Information"> </td> </tr> <tr> <td colspan="2" align="center"> <font size="2" face="Verdana"><font color="#FF0000">*</font> Required </font> </td> </tr> </form> </table> </center> </body> </html> |
| Sponsored Links |
|
|
|
|||||
|
If you could be a little more specific than its "not working" I could help you. In the mean time, you can have a look at this tutorial mail() function
|
|
|||||
|
Well you kind of have me confused how you posted your code. Which code is mainform.php and which order.php?
Also, its better to use the isset() function to test if variables are empty/nonempty. So a better way would be to do PHP Code:
|
|
|||||
|
Oh well I think the problem is, your including mailform.php infinity times.
Essentially what happens is 1) You load mailform.php 2) It checks and sees that $name == "" 3) Loads mailform.php 4) It checks and sees that $name == "" 5) Loads mailform.php again 6) It checks and sees that $name == "" 7) Loads mailform.php again and so on Until the max amount of memory for php is reached and it then fails |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| JavaScript:Tutorial, Using an External Script | TcM | Javascript | 7 | 09-11-2007 07:39 AM |
| (Script) Copy content to clipboard, how? | annannienann | Visual Basic Programming | 0 | 06-19-2007 05:20 PM |
| Need help with proxy script please | TcM | PHP Forum | 4 | 05-16-2007 09:54 AM |
| Packet Loss Perl Script | Jordan | Tutorials | 1 | 04-29-2007 12:29 PM |
| John | ........ | 223.00000 |
| dargueta | ........ | 168.00000 |
| Xav | ........ | 164.00000 |
| LogicKills | ........ | 20.00000 |
| gaylo565 | ........ | 18.00000 |
| WingedPanther | ........ | 15.00000 |
| |pH| | ........ | 15.00000 |
| Johnnyboy | ........ | 3.00000 |
| navghost | ........ | 1.00000 |
Goal: 100,000 Posts
Complete: 67%