Forum Moderators: coopster

Message Too Old, No Replies

PHP form verses HTML code check

php validation

         

shayluv4u2

3:02 am on Mar 9, 2006 (gmt 0)



Hi I am a newb to this forum. I am working on a form for a site and the page that needed to be updated is in php. I am more fluent in html.
Please see the following code and let me know if you can decifer where the discrepancy is.
I was trying to update existing form fields and the label of the field is not appearing for the: address, city, state, and zip code. Also there are parenthesis after those form fields that are not needed. I can see them in the html but not in the php so they can be removed. Please advise and thanks in advance.

PHP CODE

<?php
session_start();
require "../config.php";
?>
<?php include('login_functions.php');?>
<trimmed out excess code>
<tr>
<td width="25%" >*<?php echo $label["advertiser_signup_last_name"];?>: </td>
<td width="86%"><input name="lastname" value="<?php echo stripslashes($LastName);?>" type="text" id="lastname"></td>
</tr>
<tr>
<td width="25%" valign="top"><?php echo $label["advertiser_signup_address"];?>: </td>
<td width="86%"><input name="address" value="<?php echo stripslashes($Address);?>" size="30" type="text" id="address"/><span > (<?php echo $label["advertiser_signup_address"];?>)</span></td>
</tr>
<trimmed out excess code>

Please see Terms of Service [webmasterworld.com] and Posting Guidelines [webmasterworld.com] -- coopster

[edited by: coopster at 4:58 pm (utc) on Mar. 10, 2006]
[edit reason] no urls please, please read posting guidelines [/edit]

coopster

5:02 pm on Mar 10, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, shayluv4u2.

Somewhere along the line a variable must be getting set since the $label array has an index

$label["advertiser_signup_last_name"]
that is showing up and displaying your 'Last Name' text. However the Address, city, state and zip labels of the same nature are not being setup. I'm guessing it is happening somewhere in your included file(s).