Forum Moderators: open

Message Too Old, No Replies

form submission issue

what can cause a form not to work?

         

sneaks

1:09 am on Nov 1, 2005 (gmt 0)

10+ Year Member



i have a basic form consisting of date, subject, body fields... i haven't set any maxchars in the body field which is a textarea:

i havent nailed down what is causing it not to submit because sometimes it does and sometimes it doesnt. but what i am doing is just copying a big blob of text from a site like bbc news into the content. BTW when i say the form doesnt submit, i dont mean it doesnt get to php, but i mean it does absolutely nothing.

heres the code:


<div class="containerNews">
<form action="xnCreate.php" method="GET" name="createForm">
<div style="height: 30px; width: 500px;">
<script type="text/javascript">DateInput('XmlNewsDate', true, 'YYYYMMDD' <?php if (isset($_GET['preview']) ¦¦ isset($_GET['submit'])) print ',' . $_GET['XmlNewsDate'];?>)</script>
</div>
<div style="height: 30px; width: 500px;">
<input name="XmlNewsTitle" size="96" type="text" class="formtext" value="<?php if (isset($_GET['preview']) ¦¦ isset($_GET['submit'])) print $_GET['XmlNewsTitle'];?>" />
</div>
<div style="width: 500px;">
<textarea name="XmlNewsContent" cols="102" rows="16" class="formtext"><?php if (isset($_GET['preview']) ¦¦ isset($_GET['submit'])) print $_GET['XmlNewsContent'];?>
</textarea>
</div>
<div style="width:300px; padding-top: 10px; padding-left: 300px;">
<input type="submit" name="preview" value="Preview" class="formbutton" />
<input type="submit" name="submit" value="Submit" class="formbutton" />
<input type="reset" name="reset" value="Reset" class="formbutton" />
</div>
</form>
</div>

any help would be appreciated
snx

Dijkgraaf

1:17 am on Nov 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why are you using method="GET" rather than method="POST"
There are size limits to what can passed using the GET method (URL length must not be more than 2048).

sneaks

2:53 pm on Nov 1, 2005 (gmt 0)

10+ Year Member



that was it. thanks!

snx