CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Mar 2006
    Posts
    228

    Question iPhone Data Submit...

    Hello,

    Im trying to create a html page for an iphone.

    I have it display correctly but the only thing is i can't get it to submit the data which is entered in.

    I want it to display as:
    Code:
    http://127.0.0.1/page2.htm?line1=linenumber1&line2=linenumber2
    I am using the following HTML code:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
      <meta http-equiv="content-type" content="text/html; charset=utf-8" />
      <meta id="viewport" name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
      <title>Page1</title>
      <link href="iui/iui.css" media="screen" rel="stylesheet" type="text/css" />
      <link href="iui/iuix.css" media="screen" rel="stylesheet" type="text/css" />
      <script src="iui/iui.js" type="text/javascript"></script>
    	</head>
    <body>
    	<div class="toolbar">
    		<h1 id="pageTitle">Data</h1>
    		<a id="backButton" class="button" href="#"></a>
    	</div>
    	
    
    <form action="page2.html" class="panel" method=GET selected="true" title="Data">
        <fieldset>
          <div class="row">
            <label>Line1</label>
            <input name="line1" type="text" id="line1" maxlength="50" value="" size="20" />
          </div>
          <div class="row">
            <label>Line2</label>
            <input name="line2" type="text" id="line1" maxlength="50" size="20" />
          </div>
        </fieldset>
        <input type="submit" value="Submit" name="go" class="go" />
      </form>
    	
    </body>
    </html>
    I have attacted the CSS files and JS files which i am using (which I found on the net)

    anyone know how to make it display the line1 and line2 text in the URL when submiting it? it works in IE fine but don't on Safari or the iphone.

    Can someone help me out?

    Thanks
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured