PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
defibber
Hangin' Around


Joined: Apr 17, 2006
Posts: 46
Location: Kansas City Area

PostPosted: Wed May 31, 2006 3:21 pm Reply with quote Back to top

I am trying to create a link in one of the blocks but I was wondering if there is a way to have the link fill out the Log-In information on the page it directs to.


This is what I have been trying. and a couple of other variations. It goes to the site but it does not fill it out.
$content .= "<img src=images/new.gif>&nbsp;<b><big>&middot;</big></b>&nbsp;<a href=\"http://www.emsystem.com?userid=????????,password=????????\">test</a><BR>";

This is the source info of the page I am trying to access.
Quote:
<form style="display: inline; margin: 0;" name="loginform" action="/EMSystem" method="post" target="_top">
<input type="hidden" name="uc" value="GENERAL">
<input type="hidden" name="nextStep" value="do_login">
<p class="movieText2">User ID
<input type="text" class="input-box" name="userID" tabindex="1" />
</p>

<p class="movieText2"> Password
<input type="password" class="input-box" name="password" tabindex="2"/>
</p>
<p class="movieText2">
<input name="Log In" type="submit" class="submit-button" id="Log In" value="Login" tabindex="3" />
<a href="http://info.emsystem.com/problems_login.html"> Problems?</a>
</p>
</form>


Thanks
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Wed May 31, 2006 3:30 pm Reply with quote Back to top

Several things:

1) The href you posted is not valid. Maybe you were meaning this instead:

a href=\"http://www.emsystem.com?userid=????????&amp;password=????????\">test</a>

2) In the source code you posted, no values are being given to the two input text boxes. You could try this or some variation thereof:

Code:

<p class="movieText2">User ID
<input type="text" class="input-box" name="userID" tabindex="1" value="<?php echo $userid ?>" />
</p>
<p class="movieText2"> Password
<input type="password" class="input-box" name="password" tabindex="2" value="<?php echo $password ?>" />
</p>
View user's profile Send private message Visit poster's website
defibber
Hangin' Around


Joined: Apr 17, 2006
Posts: 46
Location: Kansas City Area

PostPosted: Wed May 31, 2006 4:39 pm Reply with quote Back to top

I am trying to put the link to
Only registered users can see links on this board!
Get registered or login to the forums!
in one of the blocks for my site. The emsystem is someone elses site we use to see what hospitals are open. I was wanting to be able to put the link in a "Private" block on the site so people can click on it and it fill out the user name and password.

Sorry for the confusion.

Thanks
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Wed May 31, 2006 5:44 pm Reply with quote Back to top

Well, unfortunately, a simple link to it will not do. I thought you were in control over the code. You would need to ask them if there is a way you could do this.
View user's profile Send private message Visit poster's website
defibber
Hangin' Around


Joined: Apr 17, 2006
Posts: 46
Location: Kansas City Area

PostPosted: Wed May 31, 2006 5:50 pm Reply with quote Back to top

ok Thanks Anyways. I am not sure they would do that.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Wed May 31, 2006 6:03 pm Reply with quote Back to top

There is potentially another way, but not sure it would work. You could place the login page within an iframe under your site and possibly write some javascript to populate the form fields. I think the DOM (Document Object Model) would allow for that...
View user's profile Send private message Visit poster's website
defibber
Hangin' Around


Joined: Apr 17, 2006
Posts: 46
Location: Kansas City Area

PostPosted: Wed May 31, 2006 6:10 pm Reply with quote Back to top

Interesting. I will have to take a look at that. I haven't worked with Javascript in nuke at all.
THanks
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Thu Jun 01, 2006 7:32 am Reply with quote Back to top

You would probably want to create a custom_head.php file to place your javascript code into and place it in includes/custom_files directory. Then you will have to call some function that you have defined to populate the form fields in the iframe.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum