How do I...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

How do I...

Post by John Cartwright »

I have a form and I want to passs those variables in the url to a popup that will come up when you click submit. How do I do this...
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Code: Select all

<a href="$pages?id=$name">$name</a></td><br>\n" .
just a example
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

lol thats not what i meant, my fault for poorly explaining

Just tell me how do I make a popup come up when a form is submitted instead of it displaying on the same page (still holding all the variables)... ( instead of just reloading the page do a popup.. and preferably reload the fist page

plz :)
nincha
Forum Contributor
Posts: 191
Joined: Fri Mar 28, 2003 12:30 pm
Location: CA, USA

Post by nincha »

a pop, up mean another html browser or a javascript popup?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Yes....

I have the form
I need this form, when submitted is pressed to open the url admin_confirm.php?variables blah blah with it but in a new window instead of just refreshing in the one it is in.

Understand now?
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post by uberpolak »

Add the target "_new" to your form, so something like this:

Code: Select all

<form method="post" action="example.php" target="_new">
<!-- form stuff -->
</form>
This is really a client-side thing.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

rofl im so stupid

i did form action = blah;
then the next line i did target=_blank

rofl thanks alot..
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

I know this isnt php but is there a way to control scrollbar, width, height with the way im doing things?

edit* also remember i cant use a javascript function like popupwin because the url has all the variables and i need to keep them there for futur use.

edit* I am just using this

body onLoad="resizeTo(0,0);">
Post Reply