/    Sign up×
Community /Pin to ProfileBookmark

After button submit, page re-aligns

Hey guys, I have a quick question. I wrote this .php file that seems to be good to me but apparently I have something screwed up. If you load the contact page and hit submit (with fields not filled in, the “content part” shifts down under the header picture which it is not supposed to do. If you are using firefox, the form will load weird (known problem, trying to fix on another section of forum). Here is my site and attached is a text file of my contact.php page.

westchesterwomensicehockey.netau.net

Thank you in advance.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@svidgenOct 06.2011 — [code=php] <?php
if($error!="") {
echo "<p style="font-size: 15px; color:red"> $error <br />";} ?>[/code]


I would expect to see a closing P tag instead of a BR:

[code=php] <?php
if($error!="") {
echo "<p style="font-size: 15px; color:red"> $error </p>";} ?>[/code]


Or maybe both:

[code=php] <?php
if($error!="") {
echo "<p style="font-size: 15px; color:red"> $error </p><br />";} ?>[/code]


On another note going forward, files this small can be posted right in your thread using PHP tags (the PHP button at the top-right of the textarea). Just makes reading and responding to the thread easier/less tedious ...
×

Success!

Help @ScottG89 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...