473,383 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to protect password?

30
This script is dedicate to send sms from your page, using smsaccounts.
You have help me to do it!
Can you help me now to hide my link (because in link is my password)?

This is a html code but can anyone to write it in php code (maybe then my password will be hide)

[HTML]
<html>
<body>
<script>
function updateHREF() {
document.getElementById('theLink').href = 'https://myaccount.smsdiscount.com/clx/sendsms.php?'+ 'username=artxcenter.com'+'&password=mypass'+'&fro m=artxcenter.com' +'&to='+ document.forms[0].to.value + '&text='+ document.forms[0].text.value;
}
</script>
<form>
<input type="text" name="to" onchange="updateHREF();">
<input type="text" name="text" onchange="updateHREF();">
<input type="text" name="fieldThree">

<a id="theLink" href="javascript:alert('Please enter some values.');void('');">test me</a>
</form>
</body>
</html>
[/HTML]
Jun 8 '07 #1
1 1374
epots9
1,351 Expert 1GB
This script is dedicate to send sms from your page, using smsaccounts.
You have help me to do it!
Can you help me now to hide my link (because in link is my password)?

This is a html code but can anyone to write it in php code (maybe then my password will be hide)

[HTML]
<html>
<body>
<script>
function updateHREF() {
document.getElementById('theLink').href = 'https://myaccount.smsdiscount.com/clx/sendsms.php?'+ 'username=artxcenter.com'+'&password=mypass'+'&fro m=artxcenter.com' +'&to='+ document.forms[0].to.value + '&text='+ document.forms[0].text.value;
}
</script>
<form>
<input type="text" name="to" onchange="updateHREF();">
<input type="text" name="text" onchange="updateHREF();">
<input type="text" name="fieldThree">

<a id="theLink" href="javascript:alert('Please enter some values.');void('');">test me</a>
</form>
</body>
</html>
[/HTML]
why don't u try this?
[HTML]
<html>
<body>
<form method="POST" action="https://myaccount.smsdiscount.com/clx/sendsms.php">
<input type="text" name="username" />
<input type="password" name="password" />
<input type="text" name="to" />
<input type="text" name="text" />
<input type="text" name="fieldThree">
</form>
</body>
</html>
[/HTML]

then in the php instead of [PHP]$username = $_GET["username"];[/PHP] use [PHP]$username = $_POST["username"];[/PHP]

oh, i noticed that u have a from field that the same as the username, so u can either do: [PHP]$from = $usernamer //after you do the post line above[/PHP] or [PHP]$from = $_POST["username"];[/PHP]

**this will only work if u can access the "https://myaccount.smsdiscount.com/clx/sendsms.php" file.
hope that helps
Jun 8 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Narlen | last post by:
Hi there, I don't know much about web design but I proudly managed to password protect a page on my site. Later I realized that everyone looking at the source in any web browser can see the...
4
by: David LACASSAGNE | last post by:
Is it possible to set a password to protect the code of an Access VBA project by automation (I already know how to to it manually)? David.
5
by: Brent Burkart | last post by:
I want to protect my website with a user and password. I have SQL Server 2000 where I want to store the users and passwords and the website is complete. I just need to add in some security with...
5
by: Trev | last post by:
Hey, I have a complete frontend setup, the first window/form that shows up gives you an option of 3 databases. One of them will only need to be accessed by about 2 - 3 people within our...
3
by: Miro | last post by:
Why Password protect an MDB when someone can google and get a hack? Wondering if anyone else has thought of this and just said "oh well"... I plan to password protect an MDB where I have some...
12
by: =?Utf-8?B?am9uaWdy?= | last post by:
I wrote a simple VB.NET application that imports and edits CSV files. Now I’d like to “lock” the raw (pre-import) CSV files so these cannot be opened separately. It is not high-sensitive...
22
by: teejayem | last post by:
Hi, I am new to programming with databases and was wanting some help. Is there any way to password protect an access database and access sent sql commands to it via vb.net code? Any help...
7
by: cefrancke | last post by:
I have a few tables with sensitive user information (passwords, etc.) and I would like to prevent someone from opening a blank database and importing those tables. Is there a way to "hide" or...
3
by: jimrand | last post by:
Hi I want to protect an MS Access 2007 database I have created so that users cannot use anything other than the forms I have put in place. I have been able to create a login page which requires...
0
by: Shawn Milochik | last post by:
This isn't really a Python question -- it's a Web development question. The easy answer is to just password protect the directory all the pages are stored in, and require a password. This can be...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.