Jump to content

[SOLVED] how to change the content of a variable


joda

Recommended Posts

So,here is my question:

 

I have this web address https://cpanel2.eutelnet.rs:2096 where I have to fill out all the text boxes and login.

 

But,I wish to make the login some simple.

In the e-mail text box I must to put the complete mail address like this: username@yahoo.com

 

I wish to make another page with a login form where I can put only the user name and the system should alone put the "@yahoo.com" together with the user name.

 

Here is the code what I use from another page of mine to login on this page https://cpanel2.eutelnet.rs:2096

but I have to put the full e-mail address...

<form action="https://cpanel2.eutelnet.rs:2096/login/" method="POST">
<input type="hidden" name="login_theme" value="cpanel">
<b>Login</b>
<input type="text" name="user" autocomplete="off" size="16">

<input type="password" name="pass" size="16">
><input type="submit" value="Login" class="input-button">
<input type="hidden" name="goto_uri" value="/">
</form>

 

I need somehow the variable "user" put together with the strings "@yahoo.com" so I

can send to login page the whole "user" with the "@yahoo.com"

 

Have somebody some idea?

Link to comment
Share on other sites

You can do this with JavaScript, however a better alternative would be to alter what you have on the receiving php file.

 

Instead of like:

 

$user = $_POST['user'];

make it:

$user = $_POST['user'] . '@yahoo.com';

Link to comment
Share on other sites

When you click on this link: https://cpanel2.eutelnet.rs:2096/login/ then you can see a web page with a log in option on some hosting server. On this server I have a web page and some E-mail address. So,if I wish to log in to my web mail I have all the time go to this page and write in my full mail address and password.

 

I got an idea to design on my own page a log in field so I can direct write in my user name and password and so directly log in to my web mail.But,the problem is does the server didn't support other log in option just from the site below...

 

So, I try to figure out some option how to send to the server the user name and password from my site which is on the same server to.

 

Have someone some idea?

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.