close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

removing State information

Thread began 8/13/2009 11:42 am by brunodarwin371999 | Last modified 8/15/2009 3:50 pm by brunodarwin371999 | 1584 views | 4 replies |

brunodarwin371999

removing State information

Hello,
Could you please advise what are the code lines groups that must be removed in order to delete the the STATE information ? (State = US country part).
I tryed myself in the users_Profile.php page : I removed the big paragraph concerning the state :
<p>
<label for="UserState">State:</label>
……………………………………….. Up to ………………………………………
Please choose a state.
</span>
<?php //WAFV_Conditional users_Profile.php usersProfile(10:)
}
}
}?>
</p>
However, after this operation, there are malfunctions in :
- ...Admin/users_Results.php page >>> The first name and last name don't appear.
- . ..Admin/users_Detail.php page >>> The first name, last name,adress, city,Zip code, don't appear at all.
To make sum up : how removing the state information (that doesn't exist in my country) without modifying the rest of the site ?

Thank you for your help in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

Replace the state list with a hidden form element of the same name that has the value set to "n/a", for example:

html:
<input type="hidden" name="state_province" value="n/a" />
Sign in to reply to this post

brunodarwin371999

Thank you Jason,

However, I cannot find " <input type=" . . . " name=" . . ." value=" . . ." /> For state in the users_Profile.php page.
I suppose that is because it is a drop-down menu.

There is only :

<select name="UserState" id="UserState" onBlur="if (document.getElementById('stateServerValidation')) document.getElementById . . .

etc.

Can you tell me how to do the same thing (erasing the state request / info so that the enduser don't see the state ) with this drop-down menu.

Thank you for your help.

Sign in to reply to this post

Jason ByrnesWebAssist

Replace the select list:

php:
<select name="UserState" id="UserState" onBlur="if (document.getElementById('stateServerValidation')) document.getElementById('stateServerValidation').style.display='none'" onChange="if (document.getElementById('stateServerValidation')) document.getElementById('stateServerValidation').style.display='none'" >

            <option value="" selected="selected" <?php if (!(strcmp("", (ValidatedField("usersRegistrationfull","UserState"))))) {echo "selected=\"selected\"";} ?>>Choose a state</option>
          [...etc...]
          </select>





with a hidden form element of the same name, with the value set to "n/a":

html:
<input type="hidden" name="UserState" value="n/a" />
Sign in to reply to this post

brunodarwin371999

Thank you for your help !

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...