Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 13th, 2007, 07:55 AM
hmvrulz hmvrulz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Bangalorre
Posts: 120 hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 20 h 22 m 33 sec
Reputation Power: 22
Need help with WML n php

i am new to wml coding... can some one plz verify the following code for me...

i want the user to input the following fields... and when he submits the forum... i want the add.php to get the various data thru POST method to be added to the database...

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>
<card title="Sign Guest Book">
<p>Name:
<input type="text" emptyok="true" maxlength="25" name="gb_name" value="">
<br />
Place:
<input type="text" emptyok="true" maxlength="30" name="gb_place" value="">
<br />
Phone No:
<input type="text" maxlength="50" name="gb_phone" value="">
<br />
E-Mail:
<input type="text" maxlength="50" name="gb_email" value="">
<br />
Message:
<input type="text" emptyok="true" maxlength="500" name="gb_mess" value="">
<br />
</p>

 <anchor>
        <go method="post" href="add.php">
          <postfield name="gb_name" value="$(gb_name)"/>
          <postfield name="gb_place" value="$(gb_place)"/>
          <postfield name="gb_phone" value="$(gb_phone)"/>
          <postfield name="gb_mess" value="$(gb_mess)"/>
        </go>
        Submit
      </anchor>
      
      
</card>
</wml>



am getting the following error...from wapsilon emulator...
http://www.wapsilon.com/sourceview.cgi?http://www.gnuer.com/hmv/wap/entry.wml
Code:
Parser failed. Invalid XML syntax.
"Mismatched tag"
Line 22
Column 2
Byte 579
This error occurs when a tag is opened, but another tag is closed first (like <a><b></a></b>).
__________________

Last edited by hmvrulz : February 14th, 2007 at 01:39 AM.

Reply With Quote
  #2  
Old February 14th, 2007, 01:29 AM
hmvrulz hmvrulz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Bangalorre
Posts: 120 hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 20 h 22 m 33 sec
Reputation Power: 22
can some one help me plz...

Reply With Quote
  #3  
Old February 14th, 2007, 04:14 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Click here for more information.
 
Join Date: Feb 2002
Location: Finland
Posts: 8,912 jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)jabba_29 User rank is General 11st Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 4 Weeks 1 Day 12 h 41 m 36 sec
Reputation Power: 1693
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Show your output WML during processing.
It just means that your tags are incorrect -
exactly what the error message states.

Your input tags should be closed - for example:
Code:
# <input type="text" emptyok="true" maxlength="25" name="gb_name" value="" /> 
__________________
Cheers,

Jamie

# mdb4u | mobile movie database] | Please help to test and promote
# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.



__________________

Reply With Quote
  #4  
Old February 14th, 2007, 06:29 AM
hmvrulz hmvrulz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Bangalorre
Posts: 120 hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level)hmvrulz User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 20 h 22 m 33 sec
Reputation Power: 22
Quote:
Originally Posted by jabba_29
Show your output WML during processing.
It just means that your tags are incorrect -
exactly what the error message states.

Your input tags should be closed - for example:
Code:
# <input type="text" emptyok="true" maxlength="25" name="gb_name" value="" /> 


kool... i over saw tht..... thanx mate..

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > Need help with WML ...n POST method


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 6 hosted by Hostway
Stay green...Green IT