944,028 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1219
  • PHP RSS
Apr 18th, 2007
0

Problem with forms

Expand Post »
Hi all,

I am having a problem with my php and forms. Any help would be verty greatly appreciated. The problem is form objects are not showing up at times and they are at other times.

Has any one heard of this happening and if so is there a fix?

I looked at the source code and noticed that everything is there but it isn't showing up on the screen. I also noticed that I could highlight the textarea but the information that is suppose to show up in the textarea is not there and it appears as though the textarea is not there at all either.

My php code is as follows:

<form enctype="multipart/form-data" method="post" action="postPic.php">
<input type="hidden" name="pic" value="<? echo $pic; ?>" />
<input type="hidden" name="city" value="<? echo $city; ?>" />
<input type="hidden" name="saying" value="<? echo $saying; ?>" />
<input type="file" name="uploadFile" id="uploadFile" class="input" /><br />
It looks like from here
<div class="input">
Message to go with this picture.<br />
<textarea name="say" rows="5" cols="20"><? echo $say; ?></textarea></div>
to here isn't showing up on the screen but looking at the source code below it is there just not showing up on the screen.
<div class="submit"><input type="image" src="../images/upload.png" name="submit" value="Upload" /></div>

</form>

It appears that everything in the div with a class name of input is missing on the screen

The source code from the page follows:

<form enctype="multipart/form-data" method="post" action="postPic.php">
<input type="hidden" name="pic" value="6" />
<input type="hidden" name="city" value="Grandville" />
<input type="hidden" name="saying" value="3" />
<input type="file" name="uploadFile" id="uploadFile" class="input" /><br />
Starting here it isn't showing on the screen
<div class="input">
Message to go with this picture.<br />
<textarea name="say" rows="5" cols="20">Christian reality</textarea></div>Ending here
<div class="submit"><input type="image" src="../images/upload.png" name="submit" value="Upload" /></div>

</form>

It isn't making much sense to me so any help is appreciated.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jampaul3 is offline Offline
1 posts
since Apr 2007
Apr 18th, 2007
0

Re: Problem with forms

If it is echo'ing in source it isn't a problem with the php. I suggest it has to do with the design of the site.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
landae is offline Offline
4 posts
since Apr 2007
Apr 20th, 2007
0

Re: Problem with forms

Instead of using <div class="input">

Do <input type="text" class="input" ....

you may find it works a little better.
not a solution, just a suggestion
Reputation Points: 35
Solved Threads: 5
Junior Poster
dr4g is offline Offline
136 posts
since Apr 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Variable passed to each() is not an array
Next Thread in PHP Forum Timeline: help with sessions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC