General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 21st, 2003, 04:40 PM
PFerrara PFerrara is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 19 PFerrara User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to PFerrara Send a message via AIM to PFerrara
Can't post back disabled forms?

Interesting. I have a form, and after you fill it out, it goes to a confirmation page with the form reprinted all of the fields disabled, and asks you to confirm it. If yes, it takes the information and inserts into a database, otherwise it goes back reenabling the forms and placing the data there for you to change. But it seems you cant post information in a disabled form. Guess I'll have to use hiddens instead.

Reply With Quote
  #2  
Old July 21st, 2003, 06:18 PM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 7
Make the fields 'read only' and not disabled...
__________________
~ Joe Penn

We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set?

Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you.




Reply With Quote
  #3  
Old July 22nd, 2003, 03:39 AM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
You can make this work using your original code with the DISABLED keyword along with a little javascript.
Take a look at the following example:

PHP Code:
<html>
<
head>
<
title>Text Confirm</title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<
meta http-equiv="content-script-type" content="text/javascript">
<
script language="javascript">
    function 
activateElements()
    {
        
document.all.firstname.disabled falsedocument.all.lastname.disabled falsedocument.all.email.disabled falsedocument.all.password.disabled false;
    }
</script>
</head>
<body>
<form name="frmConfirm" method="get" action="textconfirm.htm">
  <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="right" nowrap>First Name</td>
      <td><input type="text" name="firstname" value="Wil" DISABLED></td>
    </tr>
    <tr>
      <td align="right" nowrap>Last Name</td>
      <td><input type="text" name="lastname" value="Moore" DISABLED></td>
    </tr>
    <tr>
      <td align="right" nowrap>Email</td>
      <td><input type="text" name="email" value="wil@wilmoore.com" DISABLED></td>
    </tr>
    <tr>
      <td align="right" nowrap>Password</td>
      <td><input type="text" name="password" value="testpass" DISABLED></td>
    </tr>
    <tr>
      <td align="right" nowrap>&nbsp;</td>
      <td><input type="button" name="btnConfirm" value="confirm" onclick="activateElements();frmConfirm.submit();"></td>
    </tr>
  </table>
</form>
</body>
</html> 
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #4  
Old July 22nd, 2003, 10:32 AM
PFerrara PFerrara is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 19 PFerrara User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to PFerrara Send a message via AIM to PFerrara
hey thanks a lot, im gonna try that

i prolly should look into learning javascript a little more

Reply With Quote
  #5  
Old July 22nd, 2003, 05:32 PM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
Make note of the w3c.org site in order to keep a good reference on html and other related technologies.

The following site is a great reference for pretty much anything internet related: http://www.irt.org/

You also definately want devguru on your favorites list:
http://www.devguru.com/

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Can't post back disabled forms?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT