Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 09-10-2008, 12:19 PM Form not submitting.
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
Without going overboard with explanation, I am writing this form via php echo, it displays fine and everything seems to work fine, but it seems like the submit button is not working, I have tried changing target, but nothing... it is as if the submit button is not working.

Code:
 case "TextsForm":
   $SQL = "Select TemplateID From TempData";
   $result = mysql_query($SQL);
   $row = mysql_fetch_row($result);
   $ID = $row[0];
   $SQL = "Select * from Templates Where TemplateID = '$ID'";
   $result = mysql_query($SQL);
   $row=mysql_fetch_row($result);
    echo ("
       ");
   for ($i=1; $i<=$row[3]; $i++)
    {
    echo ("
<form id='formTexts' name='formTexts' method='get' action='Texts.php' Target = '_blank'>
 <table align = 'center' class='style7' border='0'>
  <tr>
   <td>$row[1]  -  Text $i</td>
   <td><input type='Hidden' name='TemplateID' value = $ID/></td>
   <td><input type='Hidden' name='TxtID' value = $i/></td>
  </tr>
  <tr>
   <td>Left:</td>
   <td><input type='text' name='Left' /></td>
  </tr>
  <tr>
   <td>Bottom:</td>
   <td><input type='text' name='Bottom' /></td>
  </tr>
  <tr>
   <td>Width:</td>
   <td><input type='text' name='Width' /></td>
  </tr>
  <tr>
   <td>Height:</td>
   <td><input type='text' name='Height' /></td>
  </tr>
  <tr>
   <td>Font: </td>
   <td><input type='text' name='Font' /></td>
  </tr>
  <tr>
   <td>Color:</td>
   <td><input type='text' name='Color' /></td>
  </tr>
  <tr>
   <td>Shadow:</td>
   <td><input type='text' name='Shadow' /></td>
  </tr>
  <tr>
  <td colspan='2'><div align='center'><input type='submit' value='Submit' /></div></td>
  </tr>
 </table>
</form>     ");
  }
  echo ("
   <tr>
    <td colspan='5' class='style8'><div align='center' class='style8'><a href = '#' title = 'Cancel Action' onClick = InitPage('Categories','Categories','','Templates','Initial','')>Cancel Action</a></div>
    </tr>
    ");
 break;
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-10-2008, 03:06 PM Re: Form not submitting.
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
I just tried:

PHP Code:
<?php
echo ("
<form id='formTexts' name='formTexts' method='get' action='Texts.php' Target = '_blank'>
 <table align = 'center' class='style7' border='0'>
  <tr>
   <td>
$row[1]  -  Text $i</td>
   <td><input type='Hidden' name='TemplateID' value = 
$ID/></td>
   <td><input type='Hidden' name='TxtID' value = 
$i/></td>
  </tr>
  <tr>
   <td>Left:</td>
   <td><input type='text' name='Left' /></td>
  </tr>
  <tr>
   <td>Bottom:</td>
   <td><input type='text' name='Bottom' /></td>
  </tr>
  <tr>
   <td>Width:</td>
   <td><input type='text' name='Width' /></td>
  </tr>
  <tr>
   <td>Height:</td>
   <td><input type='text' name='Height' /></td>
  </tr>
  <tr>
   <td>Font: </td>
   <td><input type='text' name='Font' /></td>
  </tr>
  <tr>
   <td>Color:</td>
   <td><input type='text' name='Color' /></td>
  </tr>
  <tr>
   <td>Shadow:</td>
   <td><input type='text' name='Shadow' /></td>
  </tr>
  <tr>
  <td colspan='2'><div align='center'><input type='submit' value='Submit' /></div></td>
  </tr>
 </table>
</form>     "
);
?>
And it submitted for me. Maybe you have some javascript conflicting?
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to Form not submitting.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14841 seconds with 12 queries